-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (41 loc) · 1.27 KB
/
build_and_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: CI
on:
push:
branches:
- cypress
jobs:
build:
name: Test Apollo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn --immutable
- name: Get latest JBrowse
working-directory: packages/jbrowse-plugin-apollo
run: yarn run jbrowse create --nightly .jbrowse
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: 7
mongodb-replica-set: test-rs
- name: Setup config
# Use the same port you have in test:e2e
run: sed -i 's|http://localhost:[0-9]\+/|http://localhost:8999/|' packages/jbrowse-plugin-apollo/cypress/fixtures/config.json
- name: Run tests
working-directory: packages/jbrowse-plugin-apollo
env:
GUEST_USER_ROLE: admin
MONGODB_URI: mongodb://localhost:27017/apolloTestDb
run: yarn run test:e2e
- name: Archive test results
if: '!cancelled()'
uses: actions/upload-artifact@v3
with:
name: cypress_results
path: packages/jbrowse-plugin-apollo/cypress