Skip to content

Commit 48eda85

Browse files
👷 chore: update GitHub action to test frontend according to new setup
1 parent 5eb5556 commit 48eda85

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
npm run lint
3838
CI=false npm run build
3939
env:
40-
VITE_API_URL: "http://localhost:8000"
40+
MYKN_API_URL: "http://localhost:8000"
4141

4242
- uses: actions/upload-artifact@v4
4343
with:
@@ -104,7 +104,7 @@ jobs:
104104
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
105105

106106
frontend-tests:
107-
name: Run storybook tests
107+
name: Run the Vitest test suite
108108
needs: frontend-build
109109
runs-on: ubuntu-latest
110110

@@ -124,28 +124,10 @@ jobs:
124124
- name: Install Playwright
125125
run: npx playwright install --with-deps
126126

127-
- name: Build Storybook
128-
run: npm run build-storybook
129-
130-
- name: Run vitest tests
127+
- name: Run tests
131128
run: npm run test:coverage
132129

133-
- name: Serve Storybook and run tests
134-
run: |
135-
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
136-
"npx http-server storybook-static --port 6006" \
137-
"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook"
138-
139-
- name: Publish coverage report (storybook)
140-
uses: codecov/codecov-action@v3.1.4
141-
with:
142-
working-directory: frontend/coverage
143-
files: ./storybook/coverage-storybook.json
144-
flags: storybook
145-
env:
146-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
147-
148-
- name: Publish coverage report (jest)
130+
- name: Publish coverage report
149131
uses: codecov/codecov-action@v3.1.4
150132
with:
151133
working-directory: frontend/coverage

0 commit comments

Comments
 (0)