From 0efd68e38afe73541ecbfc9adf2788af4c057e4c Mon Sep 17 00:00:00 2001 From: hectorAguero Date: Wed, 8 May 2024 19:07:12 -0400 Subject: [PATCH] chore: Update envfile creation in GitHub workflows --- .github/workflows/test.yml | 6 ++---- .github/workflows/web.yml | 10 ++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac1cd90..7ddc1ba 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,10 +9,8 @@ jobs: with: channel: beta cache: true - + # Not needed for tests but pubspec.yaml requires it - name: Make envfile - uses: SpicyPizza/create-envfile@v2.0 - with: - envkey_API_URL: ${{ secrets.API_URL }} + run: echo "API_URL=${{ secrets.API_URL }}" > .env - run: flutter test \ No newline at end of file diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 036c595..7e17c17 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -21,15 +21,13 @@ jobs: cache: true - name: Make envfile - uses: SpicyPizza/create-envfile@v2.0 - 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