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