Skip to content

Commit

Permalink
CI: add unit-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-dartigues committed May 15, 2024
1 parent c4b7882 commit 4150a94
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: unit-tests

on:
pull_request: ~
push: ~

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: set up go
uses: actions/setup-go@v2
with:
go-version: 1.22

- name: cache go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}"
restore-keys: |
${{ runner.os }}-go-
- name: tests
run: |
go test -v ./...

0 comments on commit 4150a94

Please sign in to comment.