-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.52 KB
/
integration-tests-v1.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
name: Run integration tests for 1.0
on:
workflow_dispatch:
workflow_call:
secrets:
FIREBOLT_STG_USERNAME:
required: true
FIREBOLT_STG_PASSWORD:
required: true
SERVICE_ID_STG:
required: true
SERVICE_SECRET_STG:
required: true
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up node.js
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Setup database and engine
id: setup
uses: firebolt-db/integration-testing-setup@v1
with:
firebolt-username: ${{ secrets.FIREBOLT_STG_USERNAME }}
firebolt-password: ${{ secrets.FIREBOLT_STG_PASSWORD }}
api-endpoint: "api.staging.firebolt.io"
region: "us-east-1"
- name: Run integration tests
env:
FIREBOLT_USERNAME: ${{ secrets.FIREBOLT_STG_USERNAME }}
FIREBOLT_PASSWORD: ${{ secrets.FIREBOLT_STG_PASSWORD }}
FIREBOLT_DATABASE: ${{ steps.setup.outputs.database_name }}
FIREBOLT_ENGINE_NAME: ${{ steps.setup.outputs.engine_name }}
FIREBOLT_ENGINE_ENDPOINT: ${{ steps.setup.outputs.engine_url }}
FIREBOLT_API_ENDPOINT: "api.staging.firebolt.io"
FIREBOLT_CLIENT_ID: ${{ secrets.SERVICE_ID_STG }}
FIREBOLT_CLIENT_SECRET: ${{ secrets.SERVICE_SECRET_STG }}
run: |
npm run test:ci integration/v1