forked from smartcontractkit/chainlink-testing-framework
-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (46 loc) · 1.49 KB
/
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: Linting
on:
push:
jobs:
golangci:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- uses: smartcontractkit/tool-versions-to-env-action@v1.0.7
id: go-version
- run: echo ${{ steps.go-version.outputs.golang_version }}
- name: Install Go ${{ steps.go-version.outputs.golang_version }}
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.golang_version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
vulnerabilities-check:
name: Check for Vulnerabilities
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- uses: smartcontractkit/tool-versions-to-env-action@v1.0.7
id: go-version
- run: echo ${{ steps.go-version.outputs.golang_version }}
- name: Install Go ${{ steps.go-version.outputs.golang_version }}
uses: actions/setup-go@v3
with:
go-version: ${{ steps.go-version.outputs.golang_version }}
- name: Write Go List
run: go list -json -deps ./... > go.list
- name: Nancy
uses: sonatype-nexus-community/nancy-github-action@v1.0.2
actionlint:
name: Validate github action workflows
runs-on: ubuntu-latest
steps:
- name: Check out Code
uses: actions/checkout@v3
- name: Install asdf dependencies
uses: asdf-vm/actions/install@v1.1.0
- name: Run actionlint
run: actionlint