-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (37 loc) · 1.17 KB
/
integration-tests.yml
File metadata and controls
44 lines (37 loc) · 1.17 KB
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
name: Integration tests
on:
push:
branches: [ "master" ]
workflow_dispatch:
env:
ADAPT_AUTHORING_AUTH__sessionSecret: 'test-sessions-secret-for-ci'
ADAPT_AUTHORING_AUTH__tokenSecret: 'test-auth-secret-for-ci'
ADAPT_AUTHORING_MONGODB__connectionUri: 'mongodb://0.0.0.0/adapt-authoring-integration-test'
ADAPT_AUTHORING_SERVER__host: 'localhost'
ADAPT_AUTHORING_SERVER__port: '5678'
ADAPT_AUTHORING_SERVER__url: 'http://localhost:5678'
CUSTOM_DIR: node_modules/adapt-authoring-integration-data
jobs:
default:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [24.x]
mongodb-version: [8.0]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Run integration tests
run: npx at-integration-test