ADD vuklln check
This commit is contained in:
parent
4d1e262afd
commit
353b046344
30
.github/workflows/test_workflow.yml
vendored
30
.github/workflows/test_workflow.yml
vendored
@ -6,23 +6,31 @@ on:
|
|||||||
- dev
|
- dev
|
||||||
- 'feature/**'
|
- 'feature/**'
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
env:
|
||||||
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
USERNAME: ${{ vars.USERNAME }}
|
||||||
|
TAG_VERSION: ${{ github.ref_name }}
|
||||||
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
steps:
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
- name: Checkout code
|
||||||
USERNAME: ${{ vars.USERNAME }}
|
|
||||||
TAG_VERSION: ${{ github.ref_name }}
|
|
||||||
steps:
|
|
||||||
- name:
|
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: go build -v ./...
|
|
||||||
|
|
||||||
- name: test with go
|
- name: test with go
|
||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
|
vulnCheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: go vuln check
|
||||||
|
uses: golang/govulncheck-action@v1
|
||||||
|
with:
|
||||||
|
go-version-file: 'go.mod'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user