-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (47 loc) · 1.21 KB
/
ci.yml
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
name: CI
on:
push:
branches:
- main
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am
env:
VOLTA_FEATURE_PNPM: 1
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: pnpm install
- run: pnpm build
- run: pnpm lint
- run: pnpm test
embroider:
strategy:
matrix:
scenario: ['safe', 'optimized']
name: Embroider ${{ matrix.scenario }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: volta-cli/action@v4
- uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- run: pnpm install
- run: pnpm build
- run: pnpm ember try:one embroider-${{ matrix.scenario }} --skip-cleanup
working-directory: packages/ember-app