-
Notifications
You must be signed in to change notification settings - Fork 29
52 lines (40 loc) · 1.31 KB
/
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
49
50
51
52
name: Code check
on:
# Trigger the workflow on push or pull request,
# but only for some branches
push:
branches:
- master
- plugin
pull_request:
branches:
- master
- plugin
jobs:
run-linters:
name: Run code checks
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npm i
- name: Link starknet-hardhat-plugin to example repo
run: npm run link-plugin
- name: Run TypeScript correctness
run: npx tsc --noEmit
- name: Check for executables
run: npm run check-executable
- name: Check all tests are executed
run: npm run check-all-tests-executed
- name: check for hardhat config type correctness
run: npm run check-config-file
- name: Run linter
run: npm run lint
- name: Run format check
run: npm run format-check