Run tests on pull requests

Pull requests will automatically trigger a build and test run. The
produced binaries are stored as artifacts in the Github workflow.
This commit is contained in:
Soren L. Hansen
2022-08-30 22:54:02 -07:00
parent 7d431a7bd6
commit 316d5ff442
3 changed files with 19 additions and 50 deletions

View File

@@ -1,37 +0,0 @@
---
name: "pre-release"
on:
push:
branches:
- "master"
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: "Build & test"
run: "make tools release-artifacts"
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
LICENSE
builds/dist/*