Skip to content

Commit 9ac756f

Browse files
committed
ci: Validate project templates
1 parent f195aa4 commit 9ac756f

File tree

1 file changed

+48
-1
lines changed

1 file changed

+48
-1
lines changed

.github/workflows/validate.yml

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- main
88

99
jobs:
10-
validate:
10+
wxt:
11+
name: WXT
1112
runs-on: ubuntu-20.04
1213
steps:
1314
- name: Checkout
@@ -46,3 +47,49 @@ jobs:
4647

4748
- name: Tests
4849
run: pnpm test:coverage
50+
51+
project-templates:
52+
name: Project Templates
53+
runs-on: ubuntu-20.04
54+
steps:
55+
- name: Checkout
56+
uses: actions/checkout@v3
57+
58+
- name: Setup PNPM
59+
uses: pnpm/action-setup@v2
60+
with:
61+
version: 8
62+
63+
- name: Setup NodeJS
64+
uses: actions/setup-node@v3
65+
with:
66+
node-version: 18
67+
cache: 'pnpm'
68+
69+
- name: Validate Vanilla
70+
working-directory: templates/vanilla
71+
run: |
72+
npm i
73+
npm run build
74+
npm run compile
75+
76+
- name: Validate Vue
77+
working-directory: templates/vue
78+
run: |
79+
npm i
80+
npm run build
81+
npm run compile
82+
83+
- name: Validate React
84+
working-directory: templates/react
85+
run: |
86+
npm i
87+
npm run build
88+
npm run compile
89+
90+
- name: Validate Svelte
91+
working-directory: templates/svelte
92+
run: |
93+
npm i
94+
npm run build
95+
npm run check

0 commit comments

Comments
 (0)