Skip to content

Commit

Permalink
Update CI (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
samshadwell authored Sep 21, 2024
1 parent 8c40bf1 commit 10a2b81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: ["main"]
Expand All @@ -11,17 +7,27 @@ on:

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
- uses: actions/setup-go@v5
with:
go-version: "1.23.x"

- name: Build
run: go build -v ./...

- name: Test
run: go test -v ./...
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.x"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest

2 changes: 1 addition & 1 deletion githooks/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Install by running:

```
git config core.hooksPath contrib/githooks
git config core.hooksPath githooks
```

From root directory.

0 comments on commit 10a2b81

Please sign in to comment.