|
31 | 31 | - name: Lint |
32 | 32 | run: npm run lint |
33 | 33 |
|
34 | | - check-translations: |
35 | | - runs-on: ubuntu-latest |
36 | | - steps: |
37 | | - - name: Checkout code |
38 | | - uses: actions/checkout@v4 |
39 | | - - name: Setup Node.js |
40 | | - uses: actions/setup-node@v4 |
41 | | - with: |
42 | | - node-version: '18' |
43 | | - cache: 'npm' |
44 | | - - name: Install dependencies |
45 | | - run: npm run install:all |
46 | | - - name: Verify all translations are complete |
47 | | - run: node scripts/find-missing-translations.js |
48 | | - |
49 | 34 | knip: |
50 | 35 | runs-on: ubuntu-latest |
51 | 36 | steps: |
@@ -108,39 +93,3 @@ jobs: |
108 | 93 | steps: |
109 | 94 | - name: NO-OP |
110 | 95 | run: echo "All unit tests passed." |
111 | | - |
112 | | - check-openrouter-api-key: |
113 | | - runs-on: ubuntu-latest |
114 | | - outputs: |
115 | | - exists: ${{ steps.openrouter-api-key-check.outputs.defined }} |
116 | | - steps: |
117 | | - - name: Check if OpenRouter API key exists |
118 | | - id: openrouter-api-key-check |
119 | | - shell: bash |
120 | | - run: | |
121 | | - if [ "${{ secrets.OPENROUTER_API_KEY }}" != '' ]; then |
122 | | - echo "defined=true" >> $GITHUB_OUTPUT; |
123 | | - else |
124 | | - echo "defined=false" >> $GITHUB_OUTPUT; |
125 | | - fi |
126 | | -
|
127 | | - integration-test: |
128 | | - runs-on: ubuntu-latest |
129 | | - needs: [check-openrouter-api-key] |
130 | | - if: needs.check-openrouter-api-key.outputs.exists == 'true' |
131 | | - steps: |
132 | | - - name: Checkout code |
133 | | - uses: actions/checkout@v4 |
134 | | - - name: Setup Node.js |
135 | | - uses: actions/setup-node@v4 |
136 | | - with: |
137 | | - node-version: ${{ env.NODE_VERSION }} |
138 | | - cache: 'npm' |
139 | | - - name: Install dependencies |
140 | | - run: npm run install:all |
141 | | - - name: Create .env.local file |
142 | | - working-directory: e2e |
143 | | - run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local |
144 | | - - name: Run integration tests |
145 | | - working-directory: e2e |
146 | | - run: xvfb-run -a npm run ci |
0 commit comments