chore: add stale bot workflow #997
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: Automated Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
backend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Maven Action | |
uses: s4u/[email protected] | |
with: | |
java-version: 21 | |
- name: Build | |
run: mvn clean install -DskipTests -Dcheckstyle.skip | |
working-directory: ./backend | |
- name: Verify the checkstyle | |
run: mvn checkstyle:check | |
working-directory: ./backend | |
- name: Run the tests | |
run: mvn test | |
working-directory: ./backend | |
frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Frontend | |
uses: actions/checkout@v2 | |
- name: Setup | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version: 3.24.3 | |
- name: Download Dependencies | |
run: flutter pub get | |
working-directory: ./frontend | |
- name: Analyze | |
run: flutter analyze | |
working-directory: ./frontend | |
- name: Run the tests | |
run: flutter test | |
working-directory: ./frontend |