-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1005 Bytes
/
main.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
name: Cardano Data Lite Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Generate code
run: npm run codegen
- name: Check that generated code was already committed
run: |
if [[ $(git status --porcelain) ]]; then
echo "Error: Uncommitted changes found after running codegen"
git diff
exit 1
else
echo "No uncommitted changes found"
fi
- name: Typescript typecheck
run: npx tsc --noEmit
- name: Run API tests
run: npm run test-api