2021-12-16 08:58:37 +00:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Running test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment: netlify
|
2021-12-16 09:01:22 +00:00
|
|
|
container: golang:latest
|
2021-12-16 08:58:37 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@1.0.0
|
|
|
|
- name: Get dependencies
|
|
|
|
run: go get -v -t -d ./...
|
|
|
|
- name: Run tests
|
|
|
|
run: go test
|
|
|
|
- name: netlify awesome-go.com
|
|
|
|
uses: jsmrcaga/action-netlify-deploy@v1.1.0
|
|
|
|
if: contains('refs/heads/master', github.ref)
|
|
|
|
with:
|
|
|
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
|
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
|
|
NETLIFY_DEPLOY_TO_PROD: true
|
|
|
|
build_directory: tmpl
|