Skip to content

Commit

Permalink
task: adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Feb 22, 2025
1 parent 984d8ac commit fa52f3e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Testing
on:
push:
branches:
- main
pull_request:

jobs:
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22"
id: go
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
restore-keys: |
${{ runner.os }}-go
- name: test
run: |
go test --cover ./... -v

0 comments on commit fa52f3e

Please sign in to comment.