Skip to content

Commit

Permalink
chore: Update envfile creation in GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorAguero committed May 8, 2024
1 parent a940299 commit 0efd68e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ jobs:
with:
channel: beta
cache: true
# Not needed for tests but pubspec.yaml requires it
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_API_URL: ${{ secrets.API_URL }}
run: echo "API_URL=${{ secrets.API_URL }}" > .env

- run: flutter test
10 changes: 4 additions & 6 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ jobs:
cache: true

- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_API_URL: ${{ secrets.API_URL }}

- name: Run Tests
run: flutter test
run: echo "API_URL=${{ secrets.API_URL }}" > .env

- name: Install dependencies
run: flutter pub get

- name: Run Tests
run: flutter test

# 404.html and flutter_bootstrap.js are mannually added to the web folder to
# fix the 404 error on GH Pages and fix PWA Padding issue
Expand Down

0 comments on commit 0efd68e

Please sign in to comment.