Skip to content

Commit

Permalink
adding separate test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Feb 22, 2025
1 parent bfd02a7 commit 3f17d99
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/go-coverage.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: test
name: go-coverage
on: [push]
permissions:
contents: write
jobs:
test:
name: test
coverage:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -13,8 +12,6 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: test
run: make test
- name: Run Tests with Coverage
run: |
go test -coverprofile=cover.out ./...
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: test
run: make test

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions Job or Workflow does not set permissions

0 comments on commit 3f17d99

Please sign in to comment.