mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-05 05:00:05 +00:00
✅ update ci
This commit is contained in:
24
.github/workflows/test-on-pr.yml
vendored
Normal file
24
.github/workflows/test-on-pr.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Run Tests on PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO111MODULE: on
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Unit test
|
||||
run: |
|
||||
go test -v ./...
|
||||
- name: Build test
|
||||
run: |
|
||||
go build cmd/dashboard/main.go
|
||||
go build cmd/agent/main.go
|
||||
- name: Run Gosec Security Scanner
|
||||
uses: securego/gosec@master
|
||||
with:
|
||||
args: -exclude=G104 ./...
|
||||
Reference in New Issue
Block a user