| name: protoc_plugin |
| permissions: read-all |
| |
| on: |
| pull_request: |
| push: |
| branches: [master] |
| schedule: |
| - cron: "0 0 * * 0" # weekly |
| |
| defaults: |
| run: |
| working-directory: protoc_plugin |
| |
| jobs: |
| build: |
| runs-on: ubuntu-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| sdk: [stable, dev] |
| steps: |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| - uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260 |
| with: |
| sdk: ${{matrix.sdk}} |
| |
| - run: ../tool/setup.sh |
| |
| - run: dart pub get |
| |
| - run: make protos |
| |
| - run: dart analyze --fatal-infos |
| |
| - run: dart format --output=none --set-exit-if-changed lib |
| if: ${{ matrix.sdk == 'dev' }} |
| |
| - run: dart test |
| - run: dart test -p chrome -c dart2js |
| - run: dart test -p chrome -c dart2wasm |