Skip to content

Commit

Permalink
ci: add build
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Nov 13, 2024
1 parent 0a8edca commit aa6cb58
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
merge_group:

jobs:
build:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: 📥 Check out the repo
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build

on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📥 Check out the repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- name: 🛠️ Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: 📦 Install dependencies
run: go mod download

- name: 🧪 Test
run: go test -v ./...

- name: 🧹 Check formatting
run: |
go fmt ./...
git diff --exit-code

0 comments on commit aa6cb58

Please sign in to comment.