-
Notifications
You must be signed in to change notification settings - Fork 20
67 lines (55 loc) · 2.05 KB
/
verify-correctness-of-vc-content.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
name: Verify the correctness of VC content
on:
workflow_dispatch:
inputs:
docker-tag:
description: "an existing docker tag (e.g. v0.9.18)"
required: true
default: "latest"
schedule:
- cron: '0 12 * * 3,6' # Run every Wednesday and Saturday at 12:00 UTC
env:
DOCKER_TAG: ${{ github.event.inputs.docker-tag || 'latest' }}
jobs:
test-vc-correctness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pull litentry image optionally
run: |
docker pull litentry/identity-worker:$DOCKER_TAG
docker pull litentry/identity-cli:$DOCKER_TAG
docker pull litentry/litentry-parachain:$DOCKER_TAG
- name: Re-tag docker image
run: |
docker tag litentry/identity-worker:$DOCKER_TAG litentry/identity-worker:latest
docker tag litentry/identity-cli:$DOCKER_TAG litentry/identity-cli:latest
docker tag litentry/litentry-parachain:$DOCKER_TAG litentry/litentry-parachain:latest
- run: docker images --all
- name: Enable corepack and pnpm
run: corepack enable && corepack enable pnpm
- name: Launch parachain network
run: |
make launch-network-litentry
- name: Run vc correctness tests
working-directory: ./tee-worker/identity/docker
run: |
docker compose -f docker-compose.yml -f lit-vc-correctness-test.yml up --no-build --exit-code-from lit-vc-correctness-test lit-vc-correctness-test
- name: Stop docker containers
working-directory: ./tee-worker/identity/docker
run: |
docker compose -f docker-compose.yml -f lit-vc-correctness-test.yml stop
- name: Collect Docker Logs
continue-on-error: true
if: always()
uses: jwalton/gh-docker-logs@v2
with:
tail: all
dest: logs
- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs-lit-vc-correctness-test
path: logs
if-no-files-found: ignore