Skip to content

Commit

Permalink
Merge pull request #12 from hawkv6/add-testing-workflow
Browse files Browse the repository at this point in the history
add testing workflow
  • Loading branch information
severindellsperger authored Jul 11, 2024
2 parents 06d1892 + 3008f58 commit 5dd15e7
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Go Tests

on:
pull_request: {}
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Install dependencies
run: go mod tidy
- name: Test Go Source Code with Coverage
run: go test ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,20 @@

# Go workspace file
go.work

# Binary folder
bin/

# png folder
png/

#
test/uml


## VS Code
.vscode/


## Debug
__debug*

0 comments on commit 5dd15e7

Please sign in to comment.