message: chore: Run integration tests separately.
diff: @@ -3,7 +3,7 @@ name: CI
  on:
  push:
  branches:
  - - '**'
  + - main
  tags:
  - 'v*'
  pull_request:
  @@ -31,10 +31,13 @@ jobs:
  - run: npm ci
  - run: npm run validate
  - test:
  - runs-on: ubuntu-latest
  + test-unit:
  + runs-on: ${{ matrix.operating-system }}
  strategy:
  matrix:
  + operating-system:
  + - ubuntu-latest
  + - windows-latest
  node-version:
  - '12.17'
  - '12.x'
  @@ -42,25 +45,14 @@ jobs:
  - '14.x'
  - '16.0'
  - '16.x'
  - env:
  - TEST_DOCKER: true
  - services:
  - sparql-endpoint:
  - image: tenforce/virtuoso
  - env:
  - SPARQL_UPDATE: true
  - ports:
  - - 4000:8890
  - redis:
  - image: redis
  - ports:
  - - 6379:6379
  timeout-minutes: 10
  steps:
  - name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@v2
  with:
  node-version: ${{ matrix.node-version }}
  + - name: Ensure line endings are consistent
  + run: git config --global core.autocrlf input
  - name: Check out repository
  uses: actions/checkout@v2
  - name: Install dependencies and run build scripts
  @@ -75,40 +67,47 @@ jobs:
  github-token: ${{ secrets.github_token }}
  flag-name: run-${{ matrix.node-version }}
  parallel: true
  - - name: Run integration tests
  - run: npm run test:integration
  - name: Run deployment tests
  run: npm run test:deploy
  - test-windows:
  - runs-on: windows-latest
  + test-integration:
  + runs-on: ${{ matrix.operating-system }}
  strategy:
  matrix:
  + operating-system:
  + - ubuntu-latest
  node-version:
  - '12.x'
  - '14.x'
  - '16.x'
  + env:
  + TEST_DOCKER: true
  + services:
  + sparql-endpoint:
  + image: tenforce/virtuoso
  + env:
  + SPARQL_UPDATE: true
  + ports:
  + - 4000:8890
  + redis:
  + image: redis
  + ports:
  + - 6379:6379
  timeout-minutes: 10
  steps:
  - name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@v2
  with:
  node-version: ${{ matrix.node-version }}
  - - name: Ensure line endings are consistent
  - run: git config --global core.autocrlf input
  - name: Check out repository
  uses: actions/checkout@v2
  - name: Install dependencies and run build scripts
  run: npm ci
  - - name: Run unit tests
  - run: npm run test:unit
  - name: Run integration tests
  run: npm run test:integration
  - - name: Run deployment tests
  - run: npm run test:deploy
  coveralls:
  - needs: test
  + needs: test-unit
  runs-on: ubuntu-latest
  steps:
  - name: Consolidate test coverage from different jobs
  @@ -137,7 +136,9 @@ jobs:
  needs:
  - docs
  - lint
  - - test
  + - test-unit
  + - test-integration
  + - validate-components
  runs-on: ubuntu-latest
  if: startsWith(github.ref, 'refs/tags/v')
  steps:
  