-
-
Notifications
You must be signed in to change notification settings - Fork 37
80 lines (63 loc) · 2.22 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Tests
on:
pull_request:
paths:
- '**'
jobs:
build:
name: Builds & Tests
runs-on: ubuntu-latest
steps:
- name: 🌐 Checkout Repository
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
- name: 🧑💻 Setup env
uses: jycouet/jycouet/shared-config/setup@main
with:
pnpmVersion: 9
nodeVersion: 22.6.0
# - name: 🛠️ Prepare nx 1/2
# uses: nrwl/nx-set-shas@v4
# - name: 🛠️ Prepare nx 2/2
# run: git branch --track main origin/main
# - name: 👌 Run nx affected
# run: pnpm nx:affected
- name: 👌 Run nx all
run: pnpm nx:all
# - name: 🚧 Build Packages
# run: pnpm run build
# - name: 🧹 Lint Check
# run: pnpm run lint
# - name: 👌 Run Tests
# run: pnpm run test:ci
# verify_create:
# name: Verify Create
# runs-on: ubuntu-latest
# strategy:
# matrix:
# template: [kit-routes]
# # template: [kit-routes, sveltekit-remult]
# steps:
# - name: 🌐 Checkout Repository
# uses: actions/checkout@v4
# with:
# # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
# fetch-depth: 0
# - name: 🧑💻 Setup env
# uses: jycouet/jycouet/shared-config/setup@main
# with:
# pnpmVersion: 9
# nodeVersion: 22.6.0
# - name: 🚧 Run nx build
# run: pnpm build
# - name: ➕ Create template
# run:
# cd packages/create-kitql && pnpm dev test-${{ matrix.template }} -t ${{ matrix.template }}
# - name: 🧑💻 Install playwright
# run: cd packages/create-kitql/test-${{ matrix.template }} && npx [email protected] install
# - name: 🛠️ e2e install
# run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm i --no-frozen-lockfile
# - name: 👌 e2e tests (build, e2e, unit)
# run: cd packages/create-kitql/test-${{ matrix.template }} && pnpm run test:ci