Remove example from monorepo. #96
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: package/oath | |
on: | |
# Post-submit. | |
push: | |
branches: [ main ] | |
# Pre-submit. | |
pull_request: | |
branches: [ main ] | |
paths: | |
- .github/workflows/package_oath.yaml | |
- packages/oath/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: dart-lang/[email protected] | |
- run: dart pub get | |
- run: ./dev.sh setup --packages packages/oath | |
- run: ./dev.sh check --packages packages/oath | |
- run: ./dev.sh test --packages packages/oath | |
- run: ./dev.sh coverage --packages packages/oath | |
- uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
flags: oath | |
file: packages/oath/coverage/lcov.info | |
fail_ci_if_error: true | |
publish: | |
if: github.event_name == 'push' | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: dart-lang/[email protected] | |
- run: dart pub get | |
working-directory: packages/oath | |
- run: ./dev.sh publish --packages packages/oath | |
env: | |
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }} |