Skip to content

Commit

Permalink
🔧 CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Jul 29, 2024
1 parent 7b52fa3 commit d4601b7
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: "CI"

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Install dependencies
run: go mod download

- name: Generate
run: go generate ./...

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

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Install dependencies
run: go mod download

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

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod

- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1

0 comments on commit d4601b7

Please sign in to comment.