-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (50 loc) · 1.23 KB
/
tests.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: test
env:
NODE_NO_WARNINGS: true
NODE_OPTIONS: '--max-old-space-size=8192'
CI: true
on:
pull_request: {}
jobs:
prettier-check:
name: prettier
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
- name: Prettier Check
run: yarn prettier:check
lint:
name: lint
uses: the-guild-org/shared-config/.github/workflows/lint.yml@main
with:
script: yarn ci:lint
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
unit:
name: unit
runs-on: ubuntu-latest
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Setup env
uses: the-guild-org/shared-config/setup@main
with:
nodeVersion: 18
- name: Cache Jest
uses: actions/cache@v4
with:
path: .cache/jest
key: ${{ runner.os }}-jest-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-jest-
- name: Test
run: yarn test --ci