-
-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (61 loc) · 1.95 KB
/
2-package-test.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
name: Package Tests
on:
schedule:
- cron: '0 1 * * *'
jobs:
npm:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Create new app
run: formidable new app-test-npm --type="api" -l="typescript" -d="SQLite" --use-npm && cd app-test-npm && npm run build && npm run test
pnpm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Install pnpm
run: npm i -g pnpm
- name: Create new app
run: formidable new app-test-pnpm --type="api" -l="typescript" -d="SQLite" --use-pnpm && cd app-test-pnpm && pnpm run build && pnpm run test
bun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Create new app
run: formidable new app-test-bun --type="api" -l="typescript" -d="SQLite" --use-bun && cd app-test-bun && bun run build && bun run test
yarn:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install @formidablejs/installer
run: npm i -g @formidablejs/installer
- name: Install yarn
run: npm i -g yarn
- name: Create new app
run: formidable new app-test-yarn --type="api" -l="typescript" -d="SQLite" --use-yarn && cd app-test-yarn && yarn build && yarn test