Skip to content

package:current_results #48

package:current_results

package:current_results #48

name: package:current_results
permissions: read-all
on:
# Run CI on all PRs (against any branch) and on pushes to the main branch.
pull_request:
paths:
- '.github/workflows/current_results.yaml'
- 'current_results/**'
push:
branches: [ main ]
paths:
- '.github/workflows/current_results.yaml'
- 'current_results/**'
schedule:
- cron: '0 0 * * 0' # weekly
defaults:
run:
working-directory: current_results
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
sdk:
- 3.9.0 # min pubspec SDK
- stable
os:
- ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
with:
sdk: ${{ matrix.sdk }}
- name: Install Protoc
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b
- run: dart pub global activate protoc_plugin
- run: dart pub get
- run: ./tools/generate_protogen.sh
- run: dart analyze --fatal-infos
# We don't want to format third_party/ but dart format doesn't support
# excluding a directory.
- run: dart format --output=none --set-exit-if-changed lib/ bin/ endpoints/ test/ tools/
if: ${{ matrix.sdk == 'stable' }}
- run: dart test