-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.32 KB
/
verification.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
48
49
50
51
name: verification
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
code_generation:
name: Code Generation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: test
run: |
set -v
make build
git add .
git status
git diff --cached --quiet --exit-code
block_explorer_compilation:
name: Block-explorer compilation
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/block-explorer
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
GOSUMDB: off
PR_SHA: ${{ github.event.pull_request.head.sha }}
steps:
- name: Setup go environment
uses: actions/setup-go@v2
with:
go-version: '1.14'
- name: Checkout block-explorer
uses: actions/checkout@v2
with:
path: ./block-explorer
repository: insolar/block-explorer
- name: Point spec-insolar-block-explorer-api module version to current commit
run: go get github.com/insolar/spec-insolar-block-explorer-api@${PR_SHA:-${GITHUB_SHA}}
- name: Build block-explorer
run: make build
- name: Compile block-explorer tests
run: make compile-tests