Update testes in Action #27
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: Model testing | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'model/**/*.dart' | |
- .github/workflows/model_test.yml | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Unit test | |
env: | |
working-directory: './model' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup dart | |
uses: dart-lang/setup-dart@v1 | |
- name: Get dependencies | |
working-directory: ${{ env.working-directory }} | |
run: dart pub get | |
- name: Perform test | |
working-directory: ${{ env.working-directory }} | |
run: dart test | |