mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Separate dependency installation and build steps.
This commit is contained in:
parent
dedf579a08
commit
6ee56a6d67
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -36,29 +36,39 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 4000:8890
|
- 4000:8890
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm ci
|
- name: Check out repository
|
||||||
- run: npm run validate
|
uses: actions/checkout@v2
|
||||||
- run: npm run test:tsc
|
- name: Install dependencies
|
||||||
- run: npm run test:unit
|
run: npm ci --ignore-scripts
|
||||||
- name: Coveralls
|
- name: Run build scripts
|
||||||
|
run: npm run build
|
||||||
|
- name: Validate components files
|
||||||
|
run: npm run validate
|
||||||
|
- name: Type-check tests
|
||||||
|
run: npm run test:tsc
|
||||||
|
- name: Run unit tests
|
||||||
|
run: npm run test:unit
|
||||||
|
- name: Submit unit test coverage
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
flag-name: run-${{ matrix.node-version }}
|
flag-name: run-${{ matrix.node-version }}
|
||||||
parallel: true
|
parallel: true
|
||||||
- run: npm run test:integration
|
- name: Run integration tests
|
||||||
- run: npm run test:deploy
|
run: npm run test:integration
|
||||||
|
- name: Run deployment tests
|
||||||
|
run: npm run test:deploy
|
||||||
|
|
||||||
coveralls:
|
coveralls:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: coverallsapp/github-action@master
|
- name: Consolidate test coverage from different jobs
|
||||||
|
uses: coverallsapp/github-action@master
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
parallel-finished: true
|
parallel-finished: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user