Skip to content

恢复对 Windows 7/8、Server 2008 and Server 2012 的支持 #23

恢复对 Windows 7/8、Server 2008 and Server 2012 的支持

恢复对 Windows 7/8、Server 2008 and Server 2012 的支持 #23

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
paths-ignore:
- ".github/workflows/agent.yml"
- ".github/workflows/codeql-analysis.yml"
- ".github/workflows/test-on-pr.yml"
- ".github/workflows/contributors.yml"
- "README.md"
- ".goreleaser.yml"
jobs:
tests:
runs-on: ubuntu-latest
container:
image: goreleaser/goreleaser-cross:v1.20
steps:
- run: |
git config --global --add safe.directory /__w/agent/agent
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "^1.20.0"
- name: Unit test
run: |
go test -v ./...
- name: Run Gosec Security Scanner
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -exclude=G104 ./...
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: build --snapshot