forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 6
56 lines (49 loc) · 1.11 KB
/
build-test.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
52
53
54
55
56
name: go-ethereum workflow
on:
push:
branches:
- master
tags:
- '**'
pull_request:
branches:
- master
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.5
- name: Lint
run: go run build/ci.go lint
- name: Build
run: go run build/ci.go install -dlgo
test:
runs-on: [self-hosted, ${{ matrix.os }}]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
needs: lint
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.20.5
- name: Cache testdata
id: cache-testdata
uses: actions/cache@v3
with:
path: |
tests/testdata
key: ${{ runner.os }}-testdata
- name: Update git submodules
if: steps.cache-testdata.outputs.cache-hit != 'true'
run:
git submodule update --init --depth 1 --recursive
- name: Test
run: go run build/ci.go test -dlgo