-
Notifications
You must be signed in to change notification settings - Fork 11
117 lines (95 loc) · 3.3 KB
/
at_libraries.yaml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# This workflows runs when
# 1. pull_request raised to trunk branch.
# 2. tag created on at_tools repository
name: at_libraries
on:
push:
tags:
- 'v*.*.*'
branches:
- trunk
pull_request:
branches:
- trunk
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- at_contact
- at_server_status
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 # v1.5.1
with:
sdk: stable
- name: Install dependencies in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: dart pub get
- name: Analyze project source in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: dart analyze
build_and_test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- at_lookup
- at_chops
- at_onboarding_cli
- at_commons
- at_utils
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 # v1.5.1
with:
sdk: stable
- name: Install dependencies in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: dart pub get
- name: Analyze project source in ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
run: dart analyze
- name: run tests
working-directory: packages/${{ matrix.package }}
run: dart test --concurrency=1
functional_tests_at_onboarding_cli:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package:
- at_onboarding_cli_functional_tests
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 # v1.5.1
with:
sdk: stable
#functional tests for at_onboarding_cli
- name: add entry to hosts file
run: echo "127.0.0.1 vip.ve.atsign.zone" | sudo tee -a /etc/hosts
- name: Get functional test dependencies
working-directory: tests/${{ matrix.package }}
run: dart pub get
- name: Start docker instance
working-directory: tests/${{ matrix.package }}
run: sudo docker-compose up -d
- name: Check for docker container readiness
working-directory: tests/${{ matrix.package }}
run: dart run check_docker_readiness.dart
- name: run pkamLoad on docker-image
run: sudo docker exec at_onboarding_cli_functional_tests_virtualenv_1 supervisorctl start pkamLoad
- name: Check test environment readiness
working-directory: tests/${{ matrix.package }}
run: dart run check_test_env.dart
- name: run tests
working-directory: tests/${{ matrix.package }}
run: dart test --concurrency=1
- name: kill docker image
working-directory: tests/${{ matrix.package }}
run: sudo docker-compose down