Skip to content

Commit

Permalink
Merge pull request #10 from madlambda/katcipis/move-ci-gh-actions
Browse files Browse the repository at this point in the history
feat: move CI to GH actions
  • Loading branch information
katcipis authored Jul 26, 2021
2 parents 14556b1 + 859167f commit ae1e0da
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 28 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Lint

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
lint:
runs-on: ubuntu-20.04
name: lint
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Lint
run: make lint
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test and Benchmarks

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ${{ matrix.os }}
name: Run test and benchmarks
strategy:
matrix:
os: [macos-10.15, ubuntu-20.04, windows-2019]
go: [1.16]

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Go ${{matrix.go}}
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go}}

- name: tests
run: make test

- name: benchmarks
run: make bench
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golangci_lint_version=1.21.0
golangci_lint_version=1.41.1

all: analysis test

Expand All @@ -12,7 +12,7 @@ fmt:
gofmt -s -w .

bench:
go test -bench=. ./...
go test -bench=. -benchmem ./...

bench/memory/%:
@mkdir -p profilling
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/madlambda/spells

go 1.11
go 1.16

0 comments on commit ae1e0da

Please sign in to comment.