Bump actions/checkout from 3 to 4 (#81) #90
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: Buid | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run tests ${{matrix.sdk}} on ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
sdk: ['stable'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: dart-lang/setup-dart@v1.4 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- uses: actions/checkout@v4 | |
- run: dart --version | |
- run: dart pub get | |
# Verify the library re-generates. | |
- run: dart --enable-asserts tool/generate_analysis.dart | |
# Verify that the libraries are error free. | |
- run: dart analyze --fatal-infos . | |
# Run the tests. | |
- run: dart test | |
# Run a basic smoke test. | |
- run: dart tool/analysis_tester.dart | |
- name: "check for uncommitted changes" | |
run: git diff --exit-code --stat | |
shell: bash |