-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.07 KB
/
integration-tests.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
name: Integration Tests
on:
workflow_run:
workflows:
- Test and Deploy
types:
- completed
branches:
- main
workflow_dispatch:
concurrency: integration-tests
jobs:
test:
name: Integration Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install packages
run: npm install
- name: Retrieve configuration
run: |
# This expects yq from https://mikefarah.gitbook.io/yq, version 4.x
yq -n '{
"apiId": ${{ secrets.TDLIB_API_ID }},
"apiHash": "${{ secrets.TDLIB_API_HASH }}",
"aesKey": "${{ secrets.TDLIB_AES_KEY }}"
}' > integration-tests/credentials.yaml
- name: Run tests
run: npm run integration-tests
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}