-
Notifications
You must be signed in to change notification settings - Fork 58
53 lines (45 loc) · 1.4 KB
/
continuous-integration-unit-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
47
48
49
50
51
52
53
name: Continuous Integration - Unit Tests
env:
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }}
on:
pull_request:
push:
branches: ['master']
tags: ['*.*.*']
jobs:
build_and_test:
strategy:
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🧰 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.12.0
- name: 🔨 Build
run: |
yarn install --immutable --inline-builds
yarn build
env:
NODE_OPTIONS: '--max_old_space_size=8192'
- name: 🔨 Generated files
run: |
git checkout yarn-project.nix
if [ ! -z "$(git status --porcelain)" ] ; then git status ; echo "The PR is missing some generated file" ; exit 1 ; fi
yarn lint
env:
NODE_OPTIONS: '--max_old_space_size=8192'
- name: 🔃 Check for circular dependencies
run: |
yarn circular-deps:check
- name: 🔬 Test
run: |
yarn test:build:verify
yarn test --forceExit
yarn workspace @cardano-sdk/cardano-services test:cli
env:
NODE_OPTIONS: '--max_old_space_size=8192'