mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Run integration tests separately.
This commit is contained in:
parent
81e7694845
commit
b8db72dfd3
89
.github/workflows/ci.yml
vendored
89
.github/workflows/ci.yml
vendored
@ -3,7 +3,7 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- main
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -31,10 +31,13 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run validate
|
- run: npm run validate
|
||||||
|
|
||||||
test:
|
test-unit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.operating-system }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
operating-system:
|
||||||
|
- ubuntu-latest
|
||||||
|
- windows-latest
|
||||||
node-version:
|
node-version:
|
||||||
- '12.17'
|
- '12.17'
|
||||||
- '12.x'
|
- '12.x'
|
||||||
@ -42,6 +45,41 @@ jobs:
|
|||||||
- '14.x'
|
- '14.x'
|
||||||
- '16.0'
|
- '16.0'
|
||||||
- '16.x'
|
- '16.x'
|
||||||
|
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: Type-check tests
|
||||||
|
run: npm run test:ts
|
||||||
|
- name: Run unit tests
|
||||||
|
run: npm run test:unit
|
||||||
|
- name: Submit unit test coverage
|
||||||
|
uses: coverallsapp/github-action@master
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.github_token }}
|
||||||
|
flag-name: run-${{ matrix.node-version }}
|
||||||
|
parallel: true
|
||||||
|
- name: Run deployment tests
|
||||||
|
run: npm run test:deploy
|
||||||
|
|
||||||
|
test-integration:
|
||||||
|
runs-on: ${{ matrix.operating-system }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
operating-system:
|
||||||
|
- ubuntu-latest
|
||||||
|
node-version:
|
||||||
|
- '12.x'
|
||||||
|
- '14.x'
|
||||||
|
- '16.x'
|
||||||
env:
|
env:
|
||||||
TEST_DOCKER: true
|
TEST_DOCKER: true
|
||||||
services:
|
services:
|
||||||
@ -65,50 +103,11 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install dependencies and run build scripts
|
- name: Install dependencies and run build scripts
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Type-check tests
|
|
||||||
run: npm run test:ts
|
|
||||||
- name: Run unit tests
|
|
||||||
run: npm run test:unit
|
|
||||||
- name: Submit unit test coverage
|
|
||||||
uses: coverallsapp/github-action@master
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.github_token }}
|
|
||||||
flag-name: run-${{ matrix.node-version }}
|
|
||||||
parallel: true
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: npm run test:integration
|
run: npm run test:integration
|
||||||
- name: Run deployment tests
|
|
||||||
run: npm run test:deploy
|
|
||||||
|
|
||||||
test-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
node-version:
|
|
||||||
- '12.x'
|
|
||||||
- '14.x'
|
|
||||||
- '16.x'
|
|
||||||
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:
|
coveralls:
|
||||||
needs: test
|
needs: test-unit
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Consolidate test coverage from different jobs
|
- name: Consolidate test coverage from different jobs
|
||||||
@ -137,7 +136,9 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- docs
|
- docs
|
||||||
- lint
|
- lint
|
||||||
- test
|
- test-unit
|
||||||
|
- test-integration
|
||||||
|
- validate-components
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user