Skip to content

Commit

Permalink
Use github actions instead of travis (#19)
Browse files Browse the repository at this point in the history
* Create go.yml

* Remove travis config

* run go vet and staticcheck

* Correct vector.In example

* add staticcheck
  • Loading branch information
quartercastle authored Nov 23, 2021
1 parent 91df40b commit ac4bb73
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Vet
run: go vet

- uses: dominikh/[email protected]
with:
version: "2021.1.2"

- name: Test
run: go test -v ./...
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func Example() {
// Output: [5 4 4]
}

func ExampleInPlace() {
func ExampleIn() {
result, v1, v2 := make(vec, 3), vec{2, 1, 3}, vec{4, 12, 6}

vector.In(result).
Expand Down

0 comments on commit ac4bb73

Please sign in to comment.