Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
broothie committed Feb 16, 2024
1 parent e44db77 commit 0594185
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: codecov
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- run: go test ./... -coverprofile cover.out

- name: Codecov
uses: codecov/codecov-action@v3.0.0
with:
files: cover.out
18 changes: 18 additions & 0 deletions .github/workflows/gosec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: gosec
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
gosec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...

0 comments on commit 0594185

Please sign in to comment.