Skip to content

Commit

Permalink
[fix] syntax issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBoWu committed Mar 29, 2024
1 parent df901eb commit 4c7a84f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c7a84f

Please sign in to comment.