-
Notifications
You must be signed in to change notification settings - Fork 3
70 lines (66 loc) · 2.06 KB
/
ci.yml
File metadata and controls
70 lines (66 loc) · 2.06 KB
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: CI
on:
pull_request: {}
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-environment
- name: Lint
run: pnpm lint
test:
name: "Test (Node: ${{matrix.node-version}}, OS: ${{matrix.os}})"
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-environment
with:
node-version: ${{matrix.node-version}}
- name: Run tests with coverage
run: pnpm test:coverage
strategy:
fail-fast: false
matrix:
node-version:
- 18
- 20
- 22
- 24
os:
- macos-latest
- ubuntu-latest
- windows-latest
smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-environment
- name: Build gember
run: pnpm build
- name: Create test app
run: pnpm dlx ember-cli@latest new test-app -b @ember/app-blueprint --pnpm --skip-git
- name: Run generators in test-app
run: |
node bin/gember.js component foo --cwd=test-app
node bin/gember.js component-test foo --cwd=test-app
node bin/gember.js controller foo --cwd=test-app
node bin/gember.js controller-test foo --cwd=test-app
node bin/gember.js helper foo --cwd=test-app
node bin/gember.js helper-test foo --cwd=test-app
node bin/gember.js modifier foo --cwd=test-app
node bin/gember.js modifier-test foo --cwd=test-app
node bin/gember.js route foo --cwd=test-app
node bin/gember.js route-test foo --cwd=test-app
node bin/gember.js service foo --cwd=test-app
node bin/gember.js service-test foo --cwd=test-app
node bin/gember.js util foo --cwd=test-app
node bin/gember.js util-test foo --cwd=test-app
- name: Run tests in test app
run: |
cd test-app
pnpm lint:format
pnpm test