Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Jun 13, 2024
1 parent 3fd5f92 commit d08a9a9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: main
name: Build

on:
push:
Expand All @@ -14,18 +14,21 @@ jobs:
if: "!contains(github.event.commits[0].message, 'ci skip')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup golang
uses: actions/setup-go@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: '1.21'

- name: Run tests
run: go test -v ./...

- name: Build binary
run: go build -v

- name: Run goreleaser
uses: goreleaser/goreleaser-action@v3
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit d08a9a9

Please sign in to comment.