Skip to content

Commit 96e0f9d

Browse files
committed
add a basic test setup
1 parent 135a129 commit 96e0f9d

5 files changed

Lines changed: 1835 additions & 4 deletions

File tree

.github/workflows/ci.yml

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