Skip to content

Commit

Permalink
test: Migrate test workflow to GitHub Actions
Browse files Browse the repository at this point in the history
Replaces similar workflow in CircleCI.
  • Loading branch information
slewiskelly committed Oct 18, 2023
1 parent 0453673 commit b92811b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Test
on:
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
paths:
- ".github/workflows/test.yml"
- "go.*"
- "*.go"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: test
permissions:
contents: read
steps:
- name: checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: ./go.mod
- name: test
run: go test -v -race ./...
- name: vet
run: go vet ./...

0 comments on commit b92811b

Please sign in to comment.