Skip to content

Commit

Permalink
Run go test with GH actions (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleb authored Mar 15, 2024
1 parent 4fd7d82 commit 3ed3164
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Tests

on:
push:
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

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

- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- run: make test
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
go test -race -cover ./...

.PHONY: test

0 comments on commit 3ed3164

Please sign in to comment.