From 6ee56a6d672517d2b3b5fa61a28072d981c0e05a Mon Sep 17 00:00:00 2001 From: Ruben Verborgh Date: Thu, 10 Dec 2020 16:49:29 +0000 Subject: [PATCH] chore: Separate dependency installation and build steps. --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d12f72bd..aec4eed1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,29 +36,39 @@ jobs: ports: - 4000:8890 steps: - - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run validate - - run: npm run test:tsc - - run: npm run test:unit - - name: Coveralls + - name: Check out repository + uses: actions/checkout@v2 + - name: Install dependencies + run: npm ci --ignore-scripts + - 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 with: github-token: ${{ secrets.github_token }} flag-name: run-${{ matrix.node-version }} parallel: true - - run: npm run test:integration - - run: npm run test:deploy + - name: Run integration tests + run: npm run test:integration + - name: Run deployment tests + run: npm run test:deploy coveralls: needs: test runs-on: ubuntu-latest steps: - - uses: coverallsapp/github-action@master - with: - github-token: ${{ secrets.github_token }} - parallel-finished: true + - name: Consolidate test coverage from different jobs + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.github_token }} + parallel-finished: true