...

Text file src/github.com/sigstore/cosign/v2/.github/workflows/e2e-tests.yml

Documentation: github.com/sigstore/cosign/v2/.github/workflows

     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
    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-cross:
    36    strategy:
    37      matrix:
    38        os: [macos-latest, ubuntu-latest]
    39    runs-on: ${{ matrix.os }}
    40
    41    steps:
    42      - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
    43      - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
    44        with:
    45          go-version: '1.21'
    46          check-latest: true
    47
    48      - name: Run cross platform e2e tests
    49        run: go test -tags=e2e,cross -v ./test/...
    50
    51  e2e-test-pkcs11:
    52    runs-on: ubuntu-latest
    53
    54    steps:
    55      - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
    56      - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
    57        with:
    58          go-version: '1.21'
    59          check-latest: true
    60
    61      - name: Run pkcs11 end-to-end tests
    62        shell: bash
    63        run: ./test/e2e_test_pkcs11.sh

View as plain text