-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (38 loc) · 1.34 KB
/
ts_lint.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
name: TS Lint and Typecheck
on: [push]
jobs:
lint-and-typecheck:
name: Lint and Typecheck
runs-on: ubuntu-latest
environment: CI
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Enable Corepack and Install Yarn 4
run: |
corepack enable
yarn set version latest
- name: Install Dependencies
run: yarn install
- name: Run TypeScript Linter
run: yarn lint:all
# We don't store circuit and smart contract compilation artefacts in the repo,
# but typecheck fails on import without them so we just create fake files here
- name: Create fake circuit compilation artefacts
working-directory: .
run: |
mkdir -p target
touch target/main.json
- name: Create fake smart contract build artefacts
working-directory: .
run: |
mkdir -p ethereum_history_api/contracts/out/UltraVerifier.sol
echo '{ "abi": [], "bytecode": { "object": "" } }' > ethereum_history_api/contracts/out/UltraVerifier.sol/UltraVerifier.json
- name: Run TypeScript Typecheck
run: yarn typecheck:all
- name: Run TypeScript format check
run: yarn format:all:ci