tile38/.github/workflows/main.yml

35 lines
576 B
YAML

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.19
- name: Check out code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Test
run: make test
- name: Docker push
env:
DOCKER_LOGIN: tidwall
DOCKER_USER: tile38
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./scripts/docker-push.sh