remove travis and add test.yml as GHA (#117)

* remove travis and add test.yml as GHA

* Update test.yml
This commit is contained in:
Marco Argentieri
2021-07-16 16:20:16 +02:00
committed by GitHub
parent a23f40237d
commit 8338b35955
2 changed files with 29 additions and 12 deletions

29
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
integration:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go get -v -t -d ./...
- name: Test
run: |
make fmt
make install
sudo chmod -R 777 /
make test-ci

View File

@@ -1,12 +0,0 @@
sudo: true
language: go
go:
- 1.14.x
services:
- docker
script:
- make fmt
- make install
- sudo chmod -R 777 .
- make test-ci