Skip to content

Commit

Permalink
.github: add a basic CI workflow (#2)
Browse files Browse the repository at this point in the history
Check that Go code is formatted, tests pass, and lint checks are clean.
  • Loading branch information
creachadair authored Nov 14, 2024
1 parent c7a2e2d commit 2582f4a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go-presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Go presubmit

on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:

permissions:
contents: read

jobs:
build:
name: Go presubmit
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: ['stable']
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@v4
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: creachadair/go-presubmit-action@v2

0 comments on commit 2582f4a

Please sign in to comment.