GitHub test (#617)

* drop travis

* remove travis

* rename, use example

* typo

* different syntax

* rename to test

* split test and build into two jobs

* add gosec job

* drop gosec for now
This commit is contained in:
Zachary Rice authored and GitHub committed 2021-09-03 08:41:17 -05:00
1 parent 17a3943afe
commit 0fd68c901d
3 files changed
+40 -12

No files matched your search

+40
View File
@@ -0,0 +1,40 @@
name: Test
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Build
run: go build -v ./...
test:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Test
run: make test
-8
View File
@@ -1,8 +0,0 @@
language: go
go:
- 1.16.x
services:
- docker
script:
- make test
- make security-scan
-4
View File
@@ -25,10 +25,6 @@ build: format
go mod tidy
go build $(LDFLAGS)
security-scan:
go get github.com/securego/gosec/cmd/gosec
gosec -no-fail ./...
release-builds:
rm -rf build
mkdir build