Files
play-with-docker/.github/workflows/test.yml
Paul Jolly 1e0eb1f329 main: embed assets from www to allows PWD to run standalone (#425)
Generate these assets in config because this package is imported by
most.

Add internal/addgenheader as a simple helper because go-bindata doesn't
output the write header.

Also update test CI workflow to regenerate and check commit is clean.
2020-10-06 14:33:11 +01:00

31 lines
719 B
YAML

on:
push:
branches:
- master
pull_request:
branches:
- '**'
name: Go
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go_version: ["1.13.9", "1.14.1"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@722adc63f1aa60a57ec37892e133b1d319cae598
- name: Install Go
uses: actions/setup-go@9fbc767707c286e568c92927bbf57d76b73e0892
with:
go-version: ${{ matrix.go_version }}
- name: Generate
run: go generate ./...
- name: Test
run: go test ./...
- name: Verify clean commit
run: test -z "$(git status --porcelain)" || (git status; git diff; false)