From 4c7a84f4da9d36d7b5f55936d3d5a0fc951af5c2 Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Thu, 28 Mar 2024 20:48:15 -0700 Subject: [PATCH] [fix] syntax issue --- .github/workflows/ci.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9597b56..f364bf6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,15 +44,20 @@ jobs: run: pnpm eslint . # Ensure you have a lint script in your package.json - - name: Set env - env: - API_BASE_URL: ${{ vars.API_BASE_URL }} - API_PREFIX: ${{ vars.API_PREFIX }} - API_KEY: ${{ secrets.API_KEY }} + - name: Load Environment Variables + run: | + echo "Load environment variables" + export API_BASE_URL=${{ vars.API_BASE_URL }} + export API_PREFIX=${{ vars.API_PREFIX }} + export API_KEY=${{ secrets.API_KEY }} - name: Run Tests - run: pnpm exec playwright test - # Ensure you have a test:integration script in your package.json for your API integration tests + run: | + echo "Load environment variables" + export API_BASE_URL=${{ vars.API_BASE_URL }} + export API_PREFIX=${{ vars.API_PREFIX }} + export API_KEY=${{ secrets.API_KEY }} + pnpm exec playwright test - name: Upload Test Results uses: actions/upload-artifact@v2