-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (48 loc) · 1.37 KB
/
test.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
name: test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2
env:
discovery.type: single-node
ports:
- 9200:9200
- 9300:9300
localstack:
image: localstack/localstack
env:
SERVICES: s3,sns,sqs
ports:
- 4566:4566
virtuoso:
image: openlink/virtuoso-opensource-7:7.2
ports:
- 1111:1111
- 8890:8890
env:
DBA_PASSWORD: obptest
volumes:
- /virtuoso/db:/opt/virtuoso-opensource/database
- /virtuoso/data:/usr/share/proj
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".nvmrc"
cache: npm
cache-dependency-path: package.json
- name: Install dependencies
run: npm install
- name: Wait for LocalStack S3
run: npx ts-node ./bin/wait-for-localstack-s3.ts
- name: Wait for ElasticSearch
run: ./bin/wait-for-elasticsearch/run.sh
- name: Wait for Virtuoso
run: ./bin/wait-for-virtuoso/run.sh
- name: Copy Virtuoso data
run: sudo cp -r ${{ github.workspace }}/virtuoso/data/. /virtuoso/data
- name: Run tests
run: npm run test -- --passWithNoTests