Skip to content

Commit

Permalink
Add CI in PR
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Benoit <mathieu-benoit@hotmail.fr>
  • Loading branch information
mathieu-benoit committed Oct 13, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ceb8264 commit 7fca94d
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci

on:
pull_request:

permissions:
contents: read

jobs:

test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
-
name: Run Go Tests
run: go test ./... -cover -race
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: release

on: [push]
on:
push:

permissions:
contents: read

0 comments on commit 7fca94d

Please sign in to comment.