...
1#
2# Copyright 2022 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
16name: e2e-tests
17
18# Run on every push, and allow it to be run manually.
19on:
20 push:
21 paths:
22 - '**'
23 - '!**.md'
24 - '!doc/**'
25 - '!**.txt'
26 - '!images/**'
27 - '!LICENSE'
28 - 'test/**'
29 branches:
30 - "main"
31 pull_request:
32 workflow_dispatch:
33
34jobs:
35 e2e-kms:
36 runs-on: ubuntu-latest
37 services:
38 vault:
39 image: hashicorp/vault:latest
40 env:
41 VAULT_DEV_ROOT_TOKEN_ID: root
42 options: >-
43 --health-cmd "VAULT_ADDR=http://127.0.0.1:8200 vault status"
44 --health-interval 1s
45 --health-timeout 5s
46 --health-retries 5
47 ports:
48 - 8200:8200
49
50 env:
51 VAULT_TOKEN: "root"
52 VAULT_ADDR: "http://localhost:8200"
53 COSIGN_YES: "true"
54 steps:
55 - name: Checkout
56 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
57 - uses: cpanato/vault-installer@df0775e6f6ee38dee09eaf57ede66ac6a414b70e # v1.0.2
58 with:
59 vault-release: '1.14.1'
60
61 - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
62 with:
63 go-version: '1.21'
64 check-latest: true
65
66 - uses: imjasonh/setup-crane@00c9e93efa4e1138c9a7a5c594acd6c75a2fbf0c # v0.3
67
68 - name: enable vault transit
69 run: vault secrets enable transit
70 - name: Acceptance Tests
71 run: |
72 ./test/e2e_test_secrets_kms.sh
View as plain text