-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 927 Bytes
/
test.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
name: Test
on:
push:
env:
# Don't install husky hooks
# https://typicode.github.io/husky/how-to.html#ci-server-and-docker
HUSKY: 0
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
# Have to setup node twice as workaround until corepack is supported.
# https://github.com/actions/setup-node/issues/531
- name: Setup Node (corepack-prereq)
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Enable corepack (yarn-prereq)
shell: bash
run: corepack enable
- name: Setup Node and Yarn
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Run tests
run: yarn test