ci: split ci and release jobs

This commit is contained in:
Eugen Eisler 2024-08-21 01:00:42 +02:00
parent 1bafde09b6
commit ff97b85497
2 changed files with 25 additions and 2 deletions

25
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Go Build and Release
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
- name: Run tests
run: go test -v ./...

View File

@ -5,8 +5,6 @@ on:
branches: ["main"]
tags:
- "v*"
pull_request:
branches: ["main"]
jobs:
test: