Debian Codegraph @

.github/workflows/build.yml

raw symbols SCIP
1 # Copyright The Notary Project Authors.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 # http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 name: Build
15
16 on:
17 push:
18 pull_request:
19
20 permissions:
21 contents: read
22
23 jobs:
24 build:
25 runs-on: ubuntu-latest
26 strategy:
27 matrix:
28 go-version: [ "1.20", "1.21" ]
29 fail-fast: true
30 steps:
31 - name: Check out code
32 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
33 - name: Set up Go ${{ matrix.go-version }}
34 uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
35 with:
36 go-version: ${{ matrix.go-version }}
37 check-latest: true
38 - name: Run unit tests
39 run: make test
40 - name: Run e2e tests
41 run: make e2e
42 - name: Upload coverage to codecov.io
43 uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # v3.1.5