-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (46 loc) · 1.38 KB
/
ci.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
47
48
49
name: CI Checks
on:
pull_request:
branches:
- main
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci-checks:
name: CI Checks
strategy:
matrix:
os: ["windows-latest", "ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- name: Check Out Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: yarn
id: setup-node
- name: Get Node Version
run: echo "version=$(node -v)" >> $GITHUB_OUTPUT
id: node-version
- name: Cache node_modules
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ steps.node-version.outputs.version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install Packages
run: yarn install --frozen-lockfile --network-timeout 100000
- name: Patch packages
run: yarn patch-package
- name: ESlint
run: yarn eslint -f github-annotations .
- name: TypeScript
run: yarn tsc --noEmit
- name: Unit Tests
timeout-minutes: 2
run: yarn test --runInBand --forceExit --verbose --no-watchman
- name: Black Box Tests
timeout-minutes: 2
run: yarn test:black-box --runInBand --forceExit --verbose --no-watchman --no-coverage