-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (44 loc) · 1.43 KB
/
crwa.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
56
57
58
59
name: 🌲 CRWA
on:
pull_request:
push:
branches: ['next', 'release/**']
# Cancel in-progress runs of this workflow.
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
build-lint-test:
needs: check
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
name: 🏗 Build, lint, test / ${{ matrix.os }} / node 18 latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: ⬢ Enable Corepack
run: corepack enable
- name: ⬢ Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: ⬢ Enable Corepack
run: corepack enable
- name: 🐈 Set up yarn cache
uses: ./.github/actions/set-up-yarn-cache
- name: 🐈 Yarn install
run: yarn install --inline-builds
env:
GITHUB_TOKEN: ${{ github.token }}
- name: 🏗️ Build
run: yarn build
- name: 🏗️ Set up test project
run: |
PROJECT_PATH=$(yarn set-up-test-harness)
echo "PROJECT_PATH=$PROJECT_PATH >> $GITHUB_ENV"
- name: 🌲 CRWA
run: PROJECT_PATH=$PROJECT_PATH yarn test:e2e