-
-
Notifications
You must be signed in to change notification settings - Fork 348
46 lines (44 loc) · 1.1 KB
/
tests.yaml
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
name: tests
on:
pull_request:
branches:
- 'master'
- 'next'
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [20.x]
steps:
- name: Set git to use LF (instead of CRLF on Windows)
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Enable corepack
run: corepack enable
- name: install
run: yarn
- name: build
run: yarn build
- name: formatting
run: yarn format:check
- name: unit tests
run: yarn test:ci
- name: tests install
working-directory: ./tests
run: yarn
- name: tests generate
working-directory: ./tests
run: yarn generate
- name: tests build
working-directory: ./tests
run: yarn build