chore: Separate dependency installation and build steps.

This commit is contained in:
Ruben Verborgh 2020-12-10 16:49:29 +00:00
parent dedf579a08
commit 6ee56a6d67

View File

@ -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