Skip to content

Commit

Permalink
Various CI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
IljaN committed Dec 6, 2024
1 parent 4aa50d7 commit f4f8bc7
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on: [push, pull_request]
name: Main
jobs:
test:
tests:
strategy:
matrix:
go-version: [1.23.x]
Expand All @@ -11,26 +11,31 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test -v ./...
publish:
- uses: actions/checkout@v4
- name: Check Code
run: |
go mod verify
go vet ./...
- name: Tests
run: go test -v ./...
release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: test
needs: tests
permissions:
contents: write
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.23.x
- name: Checkout
uses: actions/checkout@v4.2.2
#with:
#token: ${{ secrets.GH_PAT }}
uses: actions/checkout@v4
- name: Verify
run: go mod verify
- name: Build Release
run: make -j4 build_all
- name: Publish to Github
uses: softprops/action-gh-release@v2
with:
#token: ${{ secrets.GH_PAT }}
files: ./bin/*
generate_release_notes: "true"

0 comments on commit f4f8bc7

Please sign in to comment.