Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Go CI

on:
pull_request:
branches:
- main
# A workflow added by a pull request is not loaded from the base branch for
# that pull_request event. Running the workflow from ark-hand's same-repo
# sync branch makes the first workflow-installation PR testable as well.
push:
branches:
- "sync/**"
paths:
- ".github/workflows/ci.yml"

permissions:
contents: read

concurrency:
group: go-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
go-ci:
name: Go CI
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Check out repository
uses: actions/checkout@v4

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

- name: Download modules
run: go mod download

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

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

- name: Vet
run: go vet ./...

- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.64.8
args: --timeout=5m --concurrency=8 --issues-exit-code=1
Loading