Skip to content

Commit

Permalink
Merge pull request #7 from tjhop/ci/add-pr-tests
Browse files Browse the repository at this point in the history
ci: add workflow to run tests on PRs
  • Loading branch information
tjhop authored Jan 15, 2025
2 parents b7c1bf3 + c9e4561 commit a07540e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: tests
on:
push:
tags:
- v*
branches:
- main
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.23.0'
cache: true
- name: Go Preflight Tests
run: |
go mod tidy
go test -v ./...

0 comments on commit a07540e

Please sign in to comment.