-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.13 KB
/
ci-pr.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
name: CI
on: [pull_request]
concurrency:
group: ci-pr-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
name: Running tests...
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
defaults:
run:
working-directory: ./
steps:
- name: Checkout git repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use NodeJS 18
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: ./yarn.lock
- name: Install project dependencies (yarn)
run: yarn install --frozen-lockfile
- name: ESLint Cache
uses: actions/cache@v3
id: eslint-cache
with:
path: ./.cache/eslint
key: ${{ runner.os }}-eslint
- name: Code analysis (ESLint) and style-guide analysis (Prettier)
run: yarn test:lint
- name: Typings Analysis (Typescript)
run: yarn test:types
- name: Run Headless Tests Analysis
uses: coactions/setup-xvfb@v1
with:
run: yarn test