Parcourir la source

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
Zachary Rice il y a 4 ans
Parent
commit
0fd68c901d
3 fichiers modifiés avec 40 ajouts et 12 suppressions
  1. 40 0
      .github/workflows/test.yml
  2. 0 8
      .travis.yml
  3. 0 4
      Makefile

+ 40 - 0
.github/workflows/test.yml

@@ -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

+ 0 - 8
.travis.yml

@@ -1,8 +0,0 @@
-language: go
-go:
-  - 1.16.x
-services:
-  - docker
-script:
-  - make test
-  - make security-scan

+ 0 - 4
Makefile

@@ -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