1.11.0 #1487
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x, 14.x, 16.x] | |
fail-fast: false | |
# services: | |
# mongodb: | |
# image: mongo:4.2.2-bionic | |
# ports: | |
# - 27017:27017 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Start mongod | |
shell: bash | |
run: | | |
docker run --name mongo -p 27017:27017 -d mongo:4.2.2-bionic --replSet replset | |
sleep 5s | |
docker exec mongo /bin/bash -c "echo \"rs.initiate();\" | mongo" | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Use NPM 7 | |
run: npm i -g npm@7 | |
- name: Install dependencies | |
run: npm ci | |
- name: Pull dicom_utility from Docker Hub | |
run: | | |
docker pull hello-world | |
docker pull circuscad/dicom_utility:2.0.0-beta3 | |
docker pull circuscad/dicom_voxel_dump:1.0.0 | |
cd packages/circus-cs-core/test/docker | |
node build.js | |
- name: Build modules | |
run: | | |
npm run build --if-present --workspaces | |
- name: Run test | |
run: npm test | |
env: | |
CI: true | |
CIRCUS_MONGO_TEST_URL: 'mongodb://localhost:27017/circus-api-test' | |
- name: Stop mongod | |
run: | | |
docker stop mongo |