This repository has been archived by the owner on May 17, 2024. It is now read-only.
generated from findy-network/findy-template-go
-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (83 loc) · 2.42 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: setup go, lint and scan
uses: findy-network/setup-go-action@master
with:
linter-config-path: .golangci.yml
- name: test
run: go test ./...
test-aip10:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- their_agent: "acapy-main"
- their_agent: "javascript"
- their_agent: "findy"
env:
NO_TTY: "1"
steps:
- name: checkout
uses: actions/checkout@v4
- name: test findy as Acme with ${{ matrix.their_agent }}
run: |
cd ./env
make aath-up-check \
AGENT_DEFAULT=findy \
AGENT_BOB=${{ matrix.their_agent }} \
INCLUDE_TAGS='@T001-RFC0160,@T001-RFC0036,@T001-RFC0037'
- name: test findy as Bob with ${{ matrix.their_agent }}
# TODO: figure out why javascript agent fails
if: ${{ matrix.their_agent != 'javascript' }}
run: |
cd ./env
make aath-test-check \
AGENT_DEFAULT=${{ matrix.their_agent }} \
AGENT_BOB=findy \
INCLUDE_TAGS='@T001-RFC0160,@T001-RFC0036,@T001-RFC0037'
- name: Collect docker logs
if: ${{ failure() }}
uses: jwalton/gh-docker-logs@v2
with:
dest: "./tests_output/docker-logs"
- name: archive logs
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: iop-aip10-logs
path: tests_output
# TODO:
# test-aip20:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# include:
# - their_agent: "acapy-main"
# # - their_agent: "javascript"
# # - their_agent: "findy"
# env:
# NO_TTY: "1"
# steps:
# - name: checkout
# uses: actions/checkout@v4
# - name: test AIP2.0 findy as Acme with ${{ matrix.their_agent }}
# run: |
# cd ./env
# make aath-up-check-aip20 \
# AGENT_DEFAULT=findy \
# AGENT_BOB=${{ matrix.their_agent }}
# - name: Collect docker logs
# if: ${{ failure() }}
# uses: jwalton/gh-docker-logs@v2
# with:
# dest: "./tests_output/docker-logs"
# - name: archive logs
# if: ${{ failure() }}
# uses: actions/upload-artifact@v4
# with:
# name: iop-aip20-logs
# path: tests_output