Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit ae1e0da

Browse files
authored
Merge pull request #10 from madlambda/katcipis/move-ci-gh-actions
feat: move CI to GH actions
2 parents 14556b1 + 859167f commit ae1e0da

5 files changed

Lines changed: 56 additions & 28 deletions

File tree

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-20.04
14+
name: lint
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
19+
- name: Lint
20+
run: make lint

.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 and Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
name: Run test and benchmarks
15+
strategy:
16+
matrix:
17+
os: [macos-10.15, ubuntu-20.04, windows-2019]
18+
go: [1.16]
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup Go ${{matrix.go}}
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: ${{matrix.go}}
28+
29+
- name: tests
30+
run: make test
31+
32+
- name: benchmarks
33+
run: make bench

.travis.yml

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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
golangci_lint_version=1.21.0
1+
golangci_lint_version=1.41.1
22

33
all: analysis test
44

@@ -12,7 +12,7 @@ fmt:
1212
gofmt -s -w .
1313

1414
bench:
15-
go test -bench=. ./...
15+
go test -bench=. -benchmem ./...
1616

1717
bench/memory/%:
1818
@mkdir -p profilling

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/madlambda/spells
22

3-
go 1.11
3+
go 1.16

0 commit comments

Comments
 (0)