Skip to content

Commit c3af7f7

Browse files
authored
Switch from CircleCI to GitHub Actions (#201)
1 parent 8f719d6 commit c3af7f7

File tree

2 files changed

+32
-34
lines changed

2 files changed

+32
-34
lines changed

.circleci/config.yml

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

.github/workflows/tests.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
# Run this workflow on pushes and manually
4+
on: [push, workflow_dispatch]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
env:
10+
GO111MODULE: on
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
# cache/restore go mod
15+
- uses: actions/cache@v2
16+
with:
17+
path: |
18+
~/.cache/go-build
19+
~/go/pkg/mod
20+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
21+
restore-keys: |
22+
${{ runner.os }}-go-
23+
24+
- uses: actions/setup-go@v2
25+
with:
26+
go-version: 1.18.1
27+
28+
- name: Build
29+
run: go build
30+
31+
- name: Test
32+
run: go test -v ./...

0 commit comments

Comments
 (0)