Add GitHub Actions

This commit is contained in:
Oliver Davies 2022-01-26 13:32:12 +00:00
parent 11aa1735e1
commit fe111fc657
2 changed files with 14 additions and 0 deletions

10
.github/workflows/ci.yaml vendored Normal file
View 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
View file

@ -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 "${@}"
} }