tile38/.github/workflows/main.yml

35 lines
576 B
YAML
Raw Normal View History

2020-11-03 22:27:45 +03:00
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.15
- name: Check out code
2020-11-03 22:27:45 +03:00
uses: actions/checkout@v2
with:
fetch-depth: 0
2020-11-03 22:28:57 +03:00
2020-11-03 22:27:45 +03:00
- name: Test
2020-11-03 23:15:08 +03:00
run: make test
- name: Docker push
env:
DOCKER_LOGIN: tidwall
DOCKER_USER: tile38
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./scripts/docker-push.sh