mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-09-05 08:37:45 -04:00
test gh actions
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
name: Go
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.12
|
||||||
|
uses: actions/setup-go@v1
|
||||||
|
with:
|
||||||
|
go-version: 1.12
|
||||||
|
id: go
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Run
|
||||||
|
run: make ci
|
||||||
@@ -15,6 +15,7 @@ run-extra:
|
|||||||
|
|
||||||
ci:
|
ci:
|
||||||
-@cd test-fixture && ln -s ../docker .
|
-@cd test-fixture && ln -s ../docker .
|
||||||
|
make build
|
||||||
timeout 10 make run &
|
timeout 10 make run &
|
||||||
sleep 11 && timeout 10 make run-extra &
|
sleep 11 && timeout 10 make run-extra &
|
||||||
cp src/gossa_test.go . && go test
|
cp src/gossa_test.go . && go test
|
||||||
|
|||||||
Reference in New Issue
Block a user