-
Notifications
You must be signed in to change notification settings - Fork 90
70 lines (61 loc) · 1.95 KB
/
as-e2e.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CoCo-AS e2e
on:
pull_request:
branches: [ "main" ]
# Self-hosted runners do not set -o pipefail otherwise
defaults:
run:
shell: bash
jobs:
e2e-test:
strategy:
fail-fast: false
matrix:
include:
# TODO: Add real HW-TEE test
# See https://github.com/confidential-containers/trustee/issues/223
# - runner: self-hosted
# generate_evidence: true
# grpc_tee_enum: 3
# restful_tee_enum: tdx
- runner: ubuntu-22.04
generate_evidence: false
grpc_tee_enum: 2
restful_tee_enum: snp
name: TEE=${{ matrix.restful_tee_enum }} Generate Evidence Dynamically=${{ matrix.generate_evidence }}
runs-on: ${{ matrix.runner }}
env:
RUSTC_VERSION: 1.83.0
GRPC_TEE_ENUM: ${{ matrix.grpc_tee_enum }}
RESTFUL_TEE_ENUM: ${{ matrix.restful_tee_enum }}
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain (${{ env.RUSTC_VERSION }})
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUSTC_VERSION }}
components: rustfmt, clippy
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Set up rust build cache
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/registry/index/
~/.cargo/registry/cache/
target/
key: rust-${{ hashFiles('./Cargo.lock') }}
- name: Install dependencies
if: ${{ matrix.runner == 'ubuntu-22.04' }}
working-directory: attestation-service/tests/e2e
run: |
make install-dependencies
go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest
- name: Run e2e test (gRPC)
working-directory: attestation-service/tests/e2e
run: make e2e-grpc-test
- name: Run e2e test (RESTful)
working-directory: attestation-service/tests/e2e
run: make e2e-restful-test