-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (36 loc) · 1.11 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
name: TS Lint and Typecheck
on: [push]
jobs:
lint-and-typecheck:
name: Lint and Typecheck
runs-on: ubuntu-latest
environment: CI
defaults:
run:
working-directory: packages/noir-ethereum-api
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
# We don't store circuit compilation artefacts in the repo,
# but typecheck fails on import without them so we just create a fake file here
- name: Create fake circuit compilation artefacts
working-directory: circuit
run: |
mkdir target
touch target/noir_ethereum_history_api.json
- name: Run TypeScript Typecheck
run: yarn typecheck
- name: Run TypeScript format check
run: yarn format:ci