We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7cd98d commit 17fb94cCopy full SHA for 17fb94c
.github/workflows/code-qa.yml
@@ -44,7 +44,10 @@ jobs:
44
run: npm test
45
46
integration-test:
47
- if: "${{ secrets.OPENROUTER_API_KEY != '' }}"
+ # https://stackoverflow.com/questions/72925899/github-actions-detect-if-secret-exists
48
+ env:
49
+ OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
50
+ if: ${{ env.OPENROUTER_API_KEY != '' }}
51
strategy:
52
matrix:
53
os: [ubuntu-latest] # macos-latest, windows-latest
@@ -59,8 +62,6 @@ jobs:
59
62
cache: 'npm'
60
63
- name: Create env.integration file
61
64
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.integration
- - name: Check env.integration file
- run: cat .env.integration
65
- name: Install dependencies
66
run: npm run install:all
67
- run: xvfb-run -a npm run test:integration
0 commit comments