generated from solacecommunity/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
91 lines (76 loc) · 3.18 KB
/
ci.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
85
86
87
88
89
90
91
name: CI
on:
# push:
# branches: ["main"]
pull_request:
types: [opened, synchronize]
schedule:
- cron: '0 4 * * MON'
# - cron: '0 4 * * *'
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: Build and Test
# timeout-minutes: 15
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Python Environment
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/devel/docs.requirements.txt
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Compile
run: yarn compile
- name: Lint
run: yarn lint
- name: Build
run: |
yarn clean
yarn build
- name: Test
run: |
export CI=true
# TEST_SC_OPEN_API_NODE
export TEST_SC_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_EP_OPEN_API_NODE
export TEST_EP_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_EP_V1_OPEN_API_NODE
export TEST_EP_V1_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_EP_RT_OPEN_API_NODE
export TEST_EP_RT_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_EP_APIM_OPEN_API_NODE
export TEST_EP_APIM_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_SEMPV2_CONFIG_OPEN_API_NODE
export TEST_SEMPV2_CONFIG_OPEN_API_NODE_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
export TEST_SEMPV2_CONFIG_OPEN_API_NODE_HOST="${{ secrets.TEST_SEMPV2_HOST }}"
export TEST_SEMPV2_CONFIG_OPEN_API_NODE_MSG_VPN_NAME="${{ secrets.TEST_SEMPV2_MSG_VPN_NAME }}"
export TEST_SEMPV2_CONFIG_OPEN_API_NODE_PASSWORD="${{ secrets.TEST_SEMPV2_PASSWORD }}"
export TEST_SEMPV2_CONFIG_OPEN_API_NODE_USERNAME="${{ secrets.TEST_SEMPV2_USERNAME }}"
# TEST_EP_SDK
export TEST_EP_SDK_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
export TEST_EP_SDK_TOKEN_NO_APPLICATION_DOMAINS_PERMISSIONS="${{ secrets.TEST_SOLACE_CLOUD_TOKEN_NO_NO_APPLICATION_DOMAINS_PERMISSIONS }}"
# TEST_EP_ASYNC_API_IMPORTER
export TEST_EP_ASYNC_API_IMPORTER_SOLACE_CLOUD_TOKEN="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# TEST_EP_MIGRATE
export EP_MIGRATE_CLI_SOLACE_CLOUD_TOKEN_V1="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
export EP_MIGRATE_CLI_SOLACE_CLOUD_TOKEN_V2="${{ secrets.TEST_SOLACE_CLOUD_TOKEN }}"
# run test: ep-migration
yarn test --filter=ep-migrate
# run test: ep-async-api-importer
yarn test --filter=ep-async-api-importer
# run test: all the remaining
yarn test