Skip to content

Commit

Permalink
ci: configure ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
g4s8 committed Dec 11, 2023
1 parent 4e527ac commit dd03bfa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
"on":
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v3
with:
go-version: '1.21'
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build -v
- name: Test
run: go test -v
- name: Vet
run: go vet
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.3
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.gitstrap.yml
/envdoc

0 comments on commit dd03bfa

Please sign in to comment.