Debian Codegraph @

.github/workflows/e2e_test.yml

raw
1 #
2 # Copyright 2021 The Sigstore Authors.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 name: test
17
18 on:
19 push:
20 branches: [main]
21 pull_request:
22 branches: [main]
23
24 permissions: {}
25
26 jobs:
27 e2e_test:
28 name: e2e integration tests
29 runs-on: ubuntu-latest
30
31 permissions:
32 contents: read
33
34 steps:
35 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
36 with:
37 persist-credentials: false
38
39 - name: Set up Go
40 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
41 with:
42 go-version-file: './go.mod'
43 check-latest: true
44 cache: false
45
46 - name: Cache Modules
47 uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
48 with:
49 path: ~/go/pkg/mod
50 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
51 restore-keys: |
52 ${{ runner.os }}-go-
53
54 - name: Pull chrome (from ubuntu repository)
55 run: |
56 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
57 sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
58 sudo apt update && sudo apt install -y google-chrome-stable
59
60 - name: Docker Build
61 working-directory: ./test/e2e
62 run: docker compose build
63
64 - name: Integration test
65 run: make test-e2e
66
67 signer_program_test:
68 name: signer program test
69 strategy:
70 matrix:
71 os: [macos-latest, ubuntu-latest, windows-latest]
72 runs-on: ${{ matrix.os }}
73
74 permissions:
75 contents: read
76
77 steps:
78 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
79 with:
80 persist-credentials: false
81 - name: Set up Go
82 uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
83 with:
84 go-version-file: 'go.mod'
85 check-latest: true
86 cache: false
87 - name: plugin test
88 run: make test-signer-program