add workflows

This commit is contained in:
2025-07-06 00:05:11 -05:00
parent bc05835dae
commit dfac66e8bc
2 changed files with 44 additions and 0 deletions

24
.github/workflows/go-test.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Go Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Set up Go 1.24
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Run Go tests
run: go test ./...

20
.github/workflows/gosec.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Run Gosec
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@v3
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...