2020-11-03 22:27:45 +03:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-05-03 12:02:40 +03:00
|
|
|
branches: [master]
|
2020-11-03 22:27:45 +03:00
|
|
|
pull_request:
|
2023-05-03 12:02:40 +03:00
|
|
|
branches: [master]
|
2020-11-03 22:27:45 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-03 12:02:40 +03:00
|
|
|
- name: Set up Go 1.x
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2024-06-04 06:13:06 +03:00
|
|
|
go-version: ^1.22
|
2020-11-03 22:27:45 +03:00
|
|
|
|
2023-05-03 12:02:40 +03:00
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-11-03 22:27:45 +03:00
|
|
|
|
2023-05-03 12:02:40 +03:00
|
|
|
- name: Test
|
|
|
|
run: make test
|
2020-11-03 22:28:57 +03:00
|
|
|
|
2023-05-03 12:02:40 +03:00
|
|
|
- name: Package
|
|
|
|
run: make package
|
2020-11-04 00:36:07 +03:00
|
|
|
|
2023-05-03 12:02:40 +03:00
|
|
|
- name: Docker push
|
|
|
|
env:
|
|
|
|
DOCKER_LOGIN: tidwall
|
|
|
|
DOCKER_USER: tile38
|
|
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
run: ./scripts/docker-push.sh
|