Skip to content

Commit 2fd3afd

Browse files
committed
ci: simplify e2e test
Ensure that E2E test uses the test command.
1 parent f42c9c7 commit 2fd3afd

File tree

1 file changed

+8
-38
lines changed

1 file changed

+8
-38
lines changed

.github/workflows/e2e.yml

Lines changed: 8 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,42 +15,12 @@ jobs:
1515
with:
1616
node-version: 22
1717

18-
- name: Generate stats card
19-
uses: ./
20-
with:
21-
card: stats
22-
options: username=${{ github.repository_owner }}&show_icons=true
23-
path: build/stats.svg
24-
token: ${{ secrets.GITHUB_TOKEN }}
25-
26-
- name: Generate top languages card
27-
uses: ./
28-
with:
29-
card: top-langs
30-
options: username=${{ github.repository_owner }}&layout=compact&langs_count=6
31-
path: build/top-langs.svg
32-
token: ${{ secrets.GITHUB_TOKEN }}
33-
34-
- name: Generate pin card
35-
uses: ./
36-
with:
37-
card: pin
38-
options: username=readme-tools&repo=github-readme-stats
39-
path: build/pin-readme-tools-github-readme-stats.svg
40-
token: ${{ secrets.GITHUB_TOKEN }}
41-
42-
- name: Generate WakaTime card
43-
uses: ./
44-
with:
45-
card: wakatime
46-
options: username=MNZ&layout=compact # Used active username from leaderboard
47-
path: build/wakatime.svg
48-
token: ${{ secrets.GITHUB_TOKEN }}
49-
50-
- name: Verify SVG output
51-
run: |
52-
rg -n "<svg" build/stats.svg
53-
rg -n "<svg" build/top-langs.svg
54-
rg -n "<svg" build/pin-readme-tools-github-readme-stats.svg
55-
rg -n "<svg" build/wakatime.svg
18+
- name: Install dependencies
19+
run: npm ci --ignore-scripts
5620
shell: bash
21+
22+
- name: Run E2E tests
23+
run: npm test
24+
env:
25+
PAT_1: ${{ secrets.GITHUB_TOKEN }}
26+
GITHUB_REPOSITORY_OWNER: "rickstaa"

0 commit comments

Comments
 (0)