Skip to content

Commit

Permalink
Add github actions workflow for testing PRs
Browse files Browse the repository at this point in the history
This may need some more work because it's not always easy to test actions locally.

Signed-off-by: Joe Adams <[email protected]>
  • Loading branch information
sysadmind committed Nov 10, 2024
1 parent c56248a commit 33ae656
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: CI
on:
pull_request:
push:

jobs:
test_go:
name: Go tests
runs-on: ubuntu-latest
container:
# Whenever the Go version is updated here, .promu.yml
# should also be updated.
image: quay.io/prometheus/golang-builder:1.23-base
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: prometheus/promci@52c7012f5f0070d7281b8db4a119e21341d43c91 # v0.4.5
- uses: ./.github/promci/actions/setup_environment
- run: make GO_ONLY=1 SKIP_GOLANGCI_LINT=1

0 comments on commit 33ae656

Please sign in to comment.