Skip to content

Commit 0691ee2

Browse files
committed
add basic CI
1 parent e255ac8 commit 0691ee2

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/ci.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- lts-v3
7+
pull_request: {}
8+
9+
concurrency:
10+
group: ci-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
name: "Tests"
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18.x
26+
cache: pnpm
27+
- run: pnpm i --frozen-lockfile
28+
- run: pnpm run lint
29+
- run: pnpm run test
30+
31+
floating:
32+
name: "Floating Dependencies"
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: pnpm/action-setup@v2
38+
with:
39+
version: 8
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: 18.x
43+
cache: pnpm
44+
- run: pnpm install --no-lockfile
45+
- run: pnpm run test:ember
46+
47+
try-scenarios:
48+
name: ${{ matrix.try-scenario }}
49+
runs-on: ubuntu-latest
50+
needs: 'test'
51+
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
try-scenario:
56+
- ember-lts-3.28
57+
- embroider-safe
58+
- embroider-optimized
59+
60+
steps:
61+
- uses: actions/checkout@v4
62+
- uses: pnpm/action-setup@v2
63+
with:
64+
version: 8
65+
- uses: actions/setup-node@v4
66+
with:
67+
node-version: 18.x
68+
cache: pnpm
69+
- run: pnpm i --frozen-lockfile
70+
- name: Run Tests
71+
run: pnpm ember try:one ${{ matrix.try-scenario }}

0 commit comments

Comments
 (0)