-
Notifications
You must be signed in to change notification settings - Fork 711
53 lines (49 loc) · 1.24 KB
/
pull-request.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
# Copyright the Hyperledger Fabric contributors. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
name: Pull Request
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
workflow_dispatch:
env:
GOPATH: /opt/go
PATH: /opt/go/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin
GO_VER: 1.21.6
permissions:
contents: read
jobs:
verify-build:
name: Verify Build
runs-on: ubuntu-20.04
steps:
- run: sudo apt clean
name: Run APT Clean
- run: sudo apt update
name: Run Apt Update
- uses: actions/setup-go@v3
name: Install Go
with:
go-version: ${{ env.GO_VER }}
- uses: actions/checkout@v3
name: Checkout Fabric CA Code
- run: make dist checks all-tests docs
name: Run Unit and Integration Tests
fvt-tests:
name: FVT Tests
runs-on: ubuntu-20.04
steps:
- run: sudo apt clean
name: Run APT Clean
- run: sudo apt update
name: Run Apt Update
- uses: actions/setup-go@v3
name: Install Go
with:
go-version: ${{ env.GO_VER }}
- uses: actions/checkout@v3
name: Checkout Fabric CA Code
- run: make fvt-tests
name: Run FVT Tests