-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (45 loc) · 1.04 KB
/
validate-contracts.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
name: validate-contracts
on:
push:
branches:
- develop
- main
pull_request:
paths:
- '.github/workflows/validate-contracts.yml'
- '.github/actions/setup/node/action.yml'
- 'contracts/**'
- '!contracts/README.md'
env:
target-directory: ./contracts
defaults:
run:
shell: bash
working-directory: ./contracts
jobs:
check:
runs-on: ubuntu-latest
concurrency: check-contracts
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/node
with:
working-directory: ${{ env.target-directory }}
- name: Compile
run: yarn compile
- name: Lint
run: yarn lint
- name: Format
run: yarn prettify
test:
runs-on: ubuntu-latest
concurrency: test-contracts
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup/node
with:
working-directory: ${{ env.target-directory }}
- name: Run Tests
run: yarn test