fix: attempt fix to Chart updater #74
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: Test app | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- ".github/workflows/release-app.yaml" | |
- "app/*" | |
- "app/**/*" | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
DOTENV: | |
required: true | |
CODECOV_TOKEN: | |
required: true | |
jobs: | |
build: | |
environment: production | |
runs-on: macos-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Make env | |
working-directory: app/ | |
run: | | |
echo "${{ secrets.DOTENV }}" > .env | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
- name: Install dependencies | |
working-directory: app/ | |
run: flutter pub get | |
- name: Run analyzer | |
working-directory: app/ | |
run: flutter analyze | |
- name: Run unit tests | |
working-directory: app/ | |
run: flutter test --coverage | |
- name: Upload to code coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
files: app/coverage/lcov.info |