Skip to content

Commit

Permalink
Updated workflows to include unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xBlaz3kx committed Jan 16, 2024
1 parent 9d62756 commit 5f0cdbb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Unit Test"

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

jobs:
build:
name: Run Go Unit Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Get dependencies
run: go mod download

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

0 comments on commit 5f0cdbb

Please sign in to comment.