Skip to content

Commit

Permalink
ci(datahub): improve CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fgravin committed Jun 21, 2022
1 parent 51fdc98 commit 9056c4c
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
Expand Down Expand Up @@ -49,12 +49,18 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npx nx workspace-lint
- run: npx nx format:check --base=$NX_BASE --head=$NX_HEAD
- run: npx nx affected --base=$NX_BASE --head=$NX_HEAD --target=lint --parallel=3
- run: npx nx affected --base=$NX_BASE --head=$NX_HEAD --target=test --parallel=3 --ci --code-coverage
- run: npx nx affected --target=build --parallel=3
- name: Install
run: npm ci
- name: Workspace lint
run: npx nx workspace-lint
- name: Format check
run: npx nx format:check --base=$NX_BASE --head=$NX_HEAD
- name: Lint affected --quiet
run: npx nx affected --base=$NX_BASE --head=$NX_HEAD --target=lint --parallel=3 --quiet
- name: Test affected
run: npx nx affected --base=$NX_BASE --head=$NX_HEAD --target=test --parallel=3 --ci --code-coverage
- name: Build affected
run: npx nx affected --target=build --parallel=3

gh-pages:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9056c4c

Please sign in to comment.