Skip to content

Commit

Permalink
ci: add workflow for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
tommytroen committed Mar 1, 2024
1 parent e560375 commit 5ca22b5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Check

on:
pull_request:
paths-ignore:
- '*.md'
- 'LICENSE.md'
jobs:
go_version:
outputs:
go_version: ${{ steps.go_version.outputs.GO_VERSION }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Find Go version
id: go_version
run: |
echo "GO_VERSION=$(grep golang .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
test-pr:
needs:
- go_version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.go_version.outputs.go_version }}
cache-dependency-path: ./go.sum
- run: make test

0 comments on commit 5ca22b5

Please sign in to comment.