File tree Expand file tree Collapse file tree 5 files changed +72
-35
lines changed Expand file tree Collapse file tree 5 files changed +72
-35
lines changed Original file line number Diff line number Diff line change
1
+ name : " Install"
2
+ description : " Sets up Node.js and runs install"
3
+
4
+ runs :
5
+ using : composite
6
+ steps :
7
+ - name : Setup Node.js
8
+ uses : actions/setup-node@v3
9
+ with :
10
+ node-version : 16
11
+ registry-url : " https://registry.npmjs.org"
12
+ cache : " yarn"
13
+
14
+ - name : Install dependencies
15
+ shell : bash
16
+ run : yarn
Original file line number Diff line number Diff line change @@ -6,26 +6,32 @@ name: Solhint Lint
6
6
on :
7
7
# Triggers the workflow on push or pull request events but only for the main branch
8
8
push :
9
- branches : [ main ]
9
+ branches : [main]
10
10
pull_request :
11
- branches : [ main ]
11
+ branches : [main]
12
+
13
+ # cancel previous runs if new commits are pushed to the branch
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
12
17
13
18
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
19
jobs :
15
20
# This workflow contains a single job called "build"
16
- build :
21
+ lint :
17
22
# The type of runner that the job will run on
18
23
runs-on : ubuntu-latest
19
24
20
25
# Steps represent a sequence of tasks that will be executed as part of the job
21
26
steps :
22
- - uses : actions/checkout@v2
27
+ - name : Checkout repository
28
+ uses : actions/checkout@v3
23
29
with :
24
30
submodules : recursive
25
- - name : Setup Node.js environment
26
-
27
- # Runs a single command using the runners shell
28
- - name : Run npm install
29
- run : yarn
30
- - name : Run lint
31
+ fetch-depth : 25
32
+
33
+ - name : Setup Project
34
+ uses : ./.github/composite-actions/setup
35
+
36
+ - name : Run Lint
31
37
run : yarn lint
Original file line number Diff line number Diff line change @@ -6,26 +6,31 @@ name: Prettier Formatting
6
6
on :
7
7
# Triggers the workflow on push or pull request events but only for the main branch
8
8
push :
9
- branches : [ main ]
9
+ branches : [main]
10
10
pull_request :
11
- branches : [ main ]
11
+ branches : [main]
12
+
13
+ # cancel previous runs if new commits are pushed to the branch
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
12
17
13
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
18
jobs :
15
19
# This workflow contains a single job called "build"
16
- build :
20
+ lint :
17
21
# The type of runner that the job will run on
18
22
runs-on : ubuntu-latest
19
23
20
24
# Steps represent a sequence of tasks that will be executed as part of the job
21
25
steps :
22
- - uses : actions/checkout@v2
26
+ - name : Checkout repository
27
+ uses : actions/checkout@v3
23
28
with :
24
29
submodules : recursive
25
- - name : Setup Node.js environment
26
-
27
- # Runs a single command using the runners shell
28
- - name : Run npm install
29
- run : yarn
30
- - name : Run prettier:contracts
30
+ fetch-depth : 25
31
+
32
+ - name : Setup Project
33
+ uses : ./.github/composite-actions/setup
34
+
35
+ - name : Run Prettier
31
36
run : yarn prettier:contracts
Original file line number Diff line number Diff line change 6
6
pull_request :
7
7
branches : [main]
8
8
9
+ # cancel previous runs if new commits are pushed to the branch
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress : true
13
+
9
14
jobs :
10
15
analyze :
11
16
runs-on : ubuntu-latest
@@ -14,15 +19,13 @@ jobs:
14
19
security-events : write
15
20
steps :
16
21
- name : Checkout repository
17
- uses : actions/checkout@v2
22
+ uses : actions/checkout@v3
18
23
with :
19
24
submodules : recursive
25
+ fetch-depth : 25
20
26
21
- - name : Setup Node.js environment
22
-
23
-
24
- - name : Run npm install
25
- run : yarn
27
+ - name : Setup Project
28
+ uses : ./.github/composite-actions/setup
26
29
27
30
- name : Install Foundry
28
31
uses : onbjerg/foundry-toolchain@v1
Original file line number Diff line number Diff line change 10
10
pull_request :
11
11
branches : [main]
12
12
13
+ # cancel previous runs if new commits are pushed to the branch
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.ref }}
16
+ cancel-in-progress : true
17
+
13
18
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14
19
jobs :
15
20
# This workflow contains a single job called "build"
16
- build :
21
+ test :
17
22
# The type of runner that the job will run on
18
- runs-on : ubuntu-latest
23
+ # 16 core paid runner
24
+ runs-on : ubuntu-latest-16
19
25
20
26
# Steps represent a sequence of tasks that will be executed as part of the job
21
27
steps :
22
- - uses : actions/checkout@v2
28
+ - name : Checkout repository
29
+ uses : actions/checkout@v3
23
30
with :
24
31
submodules : recursive
25
- - name : Setup Node.js environment
26
-
27
- # Runs a single command using the runners shell
28
- - name : Run npm install
29
- run : yarn
32
+ fetch-depth : 25
33
+
34
+ - name : Setup Project
35
+ uses : ./.github/composite-actions/setup
36
+
30
37
- name : Install Foundry
31
38
uses : onbjerg/foundry-toolchain@v1
32
39
with :
You can’t perform that action at this time.
0 commit comments