Skip to content

Commit e213245

Browse files
authored
Merge pull request #68 from ember-cli/pnpm
Move to Pnpm and Add a basic github actions CI
2 parents d226c75 + bc7a1bd commit e213245

5 files changed

Lines changed: 413 additions & 49 deletions

File tree

.github/workflows/ci.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request: {}
9+
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
name: "Test"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 5
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
node-version:
23+
- 18
24+
- 20
25+
- 22
26+
- 24
27+
28+
steps:
29+
- uses: actions/checkout@v6
30+
- uses: pnpm/action-setup@v4
31+
- uses: actions/setup-node@v6
32+
with:
33+
node-version: ${{ matrix.node-version }}
34+
cache: pnpm
35+
- run: pnpm install
36+
- run: pnpm test
37+
38+
super-legacy-node-test:
39+
name: "Super Legacy Node Test"
40+
runs-on: ubuntu-latest
41+
timeout-minutes: 5
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
node-version:
46+
- "0.10"
47+
- "0.12"
48+
- 4
49+
50+
steps:
51+
- uses: actions/checkout@v6
52+
# use the built-in npm for these super old tests
53+
- run: cat package.json | jq "del(.packageManager)" | tee package.json
54+
- uses: actions/setup-node@v6
55+
with:
56+
node-version: ${{ matrix.node-version }}
57+
cache: npm
58+
- run: npm install
59+
- run: npm test
60+
61+
legacy-node-test:
62+
name: "Legacy Node Test"
63+
runs-on: ubuntu-latest
64+
timeout-minutes: 5
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
node-version:
69+
- 6
70+
- 8
71+
- 10
72+
- 12
73+
- 14
74+
- 16
75+
76+
steps:
77+
- uses: actions/checkout@v6
78+
# prevent yarn from complaining about the packageManager key in the package.json
79+
- run: cat package.json | jq ".packageManager = \"yarn@1.22.22\"" | tee package.json
80+
- uses: actions/setup-node@v6
81+
with:
82+
node-version: ${{ matrix.node-version }}
83+
cache: yarn
84+
- run: yarn install --frozen-lockfile --ignore-engines
85+
- run: yarn test
86+
87+
windows-test:
88+
name: "Windows smoke test"
89+
runs-on: windows-latest
90+
timeout-minutes: 5
91+
92+
steps:
93+
- uses: actions/checkout@v6
94+
- uses: pnpm/action-setup@v4
95+
- uses: actions/setup-node@v6
96+
with:
97+
node-version: 24
98+
cache: pnpm
99+
- run: pnpm install
100+
- run: pnpm test

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

appveyor.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"devDependencies": {
2727
"chai": "^3.5.0",
2828
"mocha": "^2.2.4"
29-
}
29+
},
30+
"packageManager": "pnpm@10.28.2"
3031
}

0 commit comments

Comments
 (0)