-
Notifications
You must be signed in to change notification settings - Fork 500
51 lines (46 loc) · 1.82 KB
/
e2e_tests.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
#
# Copyright 2021 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: e2e-tests
# Run on every push, and allow it to be run manually.
on: [push, workflow_dispatch]
permissions: read-all
jobs:
e2e-tests:
# Skip if running in a fork that might not have secrets configured.
if: ${{ github.repository == 'sigstore/cosign' }}
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.4.0
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2.2.0
with:
go-version: '1.17'
check-latest: true
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@877d4953d2c70a0ba7ef3290ae968eb24af233bb # v0.5.1
with:
project_id: projectsigstore
service_account_key: ${{ secrets.GCP_CI_SERVICE_ACCOUNT }}
export_default_credentials: true
- name: Set up `crane`
run: go install github.com/google/go-containerregistry/cmd/crane@v0.8.0
- name: gcloud auth configure-docker
run: gcloud auth configure-docker us-central1-docker.pkg.dev --quiet
- name: Run e2e_test_secrets.sh
shell: bash
run: ./test/e2e_test_secrets.sh