Avoid using 3rd-party Docker images: Build Linux packages directly on the VM && Skip Linux package download verification #354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Check | |
on: [pull_request] | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: make test | |
run: | | |
make test | |
gosec: | |
name: gosec | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v2 | |
- name: Run Gosec Security Scanner | |
uses: securego/gosec@master | |
with: | |
args: './...' | |
depscheck: | |
name: depscheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.19 | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
- name: make depscheck | |
run: | | |
make depscheck |