forked from aj-archipelago/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.24 KB
/
cortex-file-handler-test.yml
File metadata and controls
55 lines (43 loc) · 1.24 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
45
46
47
48
49
50
51
52
53
54
55
name: Cortex File Handler Tests
on:
push:
branches: [ main, dev ]
paths:
- 'helper-apps/cortex-file-handler/**'
- '.github/workflows/cortex-file-handler-test.yml'
pull_request:
branches: [ main, dev ]
paths:
- 'helper-apps/cortex-file-handler/**'
- '.github/workflows/cortex-file-handler-test.yml'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: helper-apps/cortex-file-handler
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
cache-dependency-path: helper-apps/cortex-file-handler/package-lock.json
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install dependencies
run: npm ci
- name: Install Azurite
run: npm install -g azurite
- name: Setup GCS test environment
run: cp .env.test.gcs.ci .env.test.gcs
- name: Run GCS tests (includes Azure tests)
run: npm run test:gcs
- name: Run tests
run: npm test
env:
NODE_ENV: test