Skip to content

Commit

Permalink
Adds GitHub action for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1103 committed Feb 2, 2025
1 parent 16023ee commit 3288ffa
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go Test

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Run Go Unit Tests
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Go
uses: actions/setup-go@v4
with:
go-version: "1.23" # Change to your Go version

- name: Install Dependencies
run: go mod tidy

- name: Run Tests
run: go test -v ./...

- name: Run Tests with Coverage
run: go test -cover ./...

0 comments on commit 3288ffa

Please sign in to comment.