-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (37 loc) · 931 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build
on:
push:
branches: [develop]
tags-ignore:
- '**'
pull_request:
branches: [develop]
release:
types: [published]
jobs:
Verify:
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/go
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set Go version
id: go_version
run: |
GO_VERSION=$(cat .palantir/go-version | sed 's/^go//' )
echo "::set-output name=version::${GO_VERSION}"
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ steps.go_version.outputs.version }}
- name: Cache Godel assets
uses: actions/cache@v2
with:
path: ~/.godel
key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
restore-keys: |
${{ runner.os }}-godel-
- name: Verify
run: ./godelw verify --apply=false