Add GitHub Actions
This commit is contained in:
parent
11aa1735e1
commit
fe111fc657
2 changed files with 14 additions and 0 deletions
10
.github/workflows/ci.yaml
vendored
Normal file
10
.github/workflows/ci.yaml
vendored
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- run: ./run ci:test
|
4
run
4
run
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
function ci:test {
|
||||||
|
go test "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
function go {
|
function go {
|
||||||
docker-compose run --rm app go "${@}"
|
docker-compose run --rm app go "${@}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue