48 lines
865 B
YAML
48 lines
865 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Setup
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.14
|
|
id: go
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/go/pkg/mod
|
|
**/node_modules
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install tools
|
|
run: make install
|
|
|
|
- name: Assets & UI
|
|
run: make assets
|
|
|
|
- name: Porcelain
|
|
run: |
|
|
go mod tidy
|
|
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
|
|
|
- name: Build
|
|
run: make build
|
|
|
|
- name: Test
|
|
run: make test
|