mirror of https://github.com/gophish/gophish
Create ci.yml (#1741)
This PR enabled GitHub Actions as a replacement to TravisCI. I'm a fan of removing external dependencies where possible, and GitHub Actions has matured to be really useful.pull/1314/head
parent
be459e47bf
commit
4375e5f6a1
|
@ -0,0 +1,34 @@
|
||||||
|
name: Go
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
goVer: [1.11, 1.12, 1.13]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Set up Go ${{ matrix.goVer }}
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.goVer }}
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get dependencies
|
||||||
|
run: |
|
||||||
|
go get -v -t -d ./...
|
||||||
|
go get gopkg.in/check.v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build -v .
|
||||||
|
|
||||||
|
- name: Format
|
||||||
|
run: diff -u <(echo -n) <(gofmt -d .)
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -v ./...
|
18
.travis.yml
18
.travis.yml
|
@ -1,18 +0,0 @@
|
||||||
language: go
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
go:
|
|
||||||
- "1.10"
|
|
||||||
- 1.11
|
|
||||||
- 1.12
|
|
||||||
- 1.13
|
|
||||||
- tip
|
|
||||||
|
|
||||||
install:
|
|
||||||
- go get -d -v ./... && go build -v ./...
|
|
||||||
- go get gopkg.in/check.v1
|
|
||||||
- go get github.com/stretchr/testify
|
|
||||||
|
|
||||||
script:
|
|
||||||
- diff -u <(echo -n) <(gofmt -d .)
|
|
||||||
- go test -v ./...
|
|
Loading…
Reference in New Issue