Skip to content

First Apollo CLI commands: config, login, logout, and status #526

First Apollo CLI commands: config, login, logout, and status

First Apollo CLI commands: config, login, logout, and status #526

Workflow file for this run

name: Pull Request
on: pull_request
jobs:
build:
name: Strict lint and test
runs-on: ubuntu-latest
steps:
- name: Check out
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
# Have to build shared before linting so type-based lint rules can
# run correctly
- name: Build shared
run: yarn build
working-directory: packages/apollo-shared
- name: Lint codebase
run: yarn eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts,.jsx,.tsx .
- name: Run Jest tests
run: yarn test
- name: Get latest JBrowse
run: yarn run jbrowse create --nightly .jbrowse
working-directory: packages/jbrowse-plugin-apollo
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.10.0
with:
mongodb-version: 7
mongodb-replica-set: test-rs
- name: Run Cypress tests
run: yarn run test:e2e
working-directory: packages/jbrowse-plugin-apollo
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}