Skip to content

Commit

Permalink
👷 add CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleduigou committed Mar 18, 2024
1 parent 2971e44 commit 410c198
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Build
run: go build ./...

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
args: --timeout 120s
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@

# Go workspace file
go.work

# IntelliJ
.idea

0 comments on commit 410c198

Please sign in to comment.