Skip to content

Commit 325af21

Browse files
authored
test: Migrate test workflow to GitHub Actions (#16)
1 parent 0453673 commit 325af21

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

.circleci/config.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types:
8+
- opened
9+
- synchronize
10+
paths:
11+
- ".github/workflows/test.yml"
12+
- "go.*"
13+
- "*.go"
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
jobs:
18+
test:
19+
name: test
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
steps:
24+
- name: checkout
25+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
26+
- name: Set up Go
27+
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
28+
with:
29+
go-version-file: ./go.mod
30+
- name: test
31+
run: go test -v -race ./...
32+
- name: vet
33+
run: go vet ./...

0 commit comments

Comments
 (0)