attempt to fix actions #4
This file contains hidden or 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: Check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-backend: | |
name: Check Backend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Run Cargo Check | |
working-directory: rust-backend | |
run: cargo check | |
- name: Run Unit Tests | |
working-directory: rust-backend | |
run: cargo test | |
check-frontend: | |
name: Check Frontend | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: flutter_frontend/pubspec.yaml | |
- name: Run Flutter Version | |
run: flutter --version | |
- name: Get Dependencies | |
working-directory: flutter_frontend | |
run: flutter pub get | |
- name: Analyze Code | |
working-directory: flutter_frontend | |
run: flutter analyze | |
- name: Run Tests | |
working-directory: flutter_frontend | |
run: flutter test |