-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (34 loc) · 1.18 KB
/
test.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
name: CI
on: [push]
env:
DOCKER_BUILD_ARGS: --cache-from type=gha --cache-to type=gha
DOCKER_BUILDKIT: 1
BUILDX_CONTAINER: container
jobs:
test:
runs-on: ubuntu-latest
permissions:
packages: read
contents: read
id-token: write
steps:
- name: Checkout main project
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: true
- name: Expose Docker environmental variables for gha cache
# This action takes in the ID tokens etc provided by the permissions,
# as well as some environmental data, and exposes them to future steps
# in the correct locations and formats for their use with the `gha`
# GitHub Actions cache for Docker.
uses: crazy-max/ghaction-github-runtime@b3a9207c0e1ef41f4cf215303c976869d0c2c1c4 # v3.0.0
- name: Setup Docker
run: docker buildx create --use --name container --driver docker-container
- name: Test
run: make docker_enclave_test
- name: Build
run: make
- name: Validate
run: make docker_validate
- name: Valgrind
run: make docker_enclave_valgrind