Skip to content

Commit de44ee0

Browse files
authored
Merge pull request #12 from ember-cli/CI
add a basic test setup
2 parents 135a129 + e5aff2f commit de44ee0

File tree

5 files changed

+1575
-4
lines changed

5 files changed

+1575
-4
lines changed

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
legacy-node-test:
39+
name: "Legacy Node Test"
40+
runs-on: ubuntu-latest
41+
timeout-minutes: 5
42+
strategy:
43+
fail-fast: false
44+
matrix:
45+
node-version:
46+
- 6
47+
- 8
48+
- 10
49+
- 12
50+
- 14
51+
- 16
52+
53+
steps:
54+
- uses: actions/checkout@v6
55+
# prevent yarn from complaining about the packageManager key in the package.json
56+
- run: cat package.json | jq "del(.packageManager)" | tee package.json
57+
- uses: actions/setup-node@v6
58+
with:
59+
node-version: ${{ matrix.node-version }}
60+
cache: yarn
61+
- run: yarn install --frozen-lockfile --ignore-engines
62+
- run: yarn test
63+
64+
windows-test:
65+
name: "Windows smoke test"
66+
runs-on: windows-latest
67+
timeout-minutes: 5
68+
69+
steps:
70+
- uses: actions/checkout@v6
71+
- uses: pnpm/action-setup@v4
72+
- uses: actions/setup-node@v6
73+
with:
74+
node-version: 24
75+
cache: pnpm
76+
- run: pnpm install
77+
- run: pnpm test

.travis.yml

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

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"url": "https://github.com/ember-cli/broccoli-config-replace/issues"
3030
},
3131
"homepage": "https://github.com/ember-cli/broccoli-config-replace#readme",
32-
"dependencies": {
32+
"dependencies": {
3333
"broccoli-plugin": "^1.2.0",
3434
"debug": "^2.2.0",
3535
"fs-extra": "^0.24.0"
@@ -39,5 +39,6 @@
3939
"chai": "^3.4.1",
4040
"mocha": "^2.3.3",
4141
"tmp-sync": "^1.1.0"
42-
}
42+
},
43+
"packageManager": "pnpm@10.30.0+sha512.2b5753de015d480eeb88f5b5b61e0051f05b4301808a82ec8b840c9d2adf7748eb352c83f5c1593ca703ff1017295bc3fdd3119abb9686efc96b9fcb18200937"
4344
}

0 commit comments

Comments
 (0)