Skip to content

Commit

Permalink
build(gha): use nx run action
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Mar 14, 2024
1 parent 3c7868c commit b8fc7cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 26 deletions.
15 changes: 0 additions & 15 deletions .github/actions/build/action.yml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ jobs:
with:
node-version: ${{ vars.NODE_VERSION }}

- uses: ./.github/actions/build
- uses: myparcelnl/actions/nx-run-many@v4
env:
NX_BRANCH: production
with:
target: 'build'
args: '--runner=cloud'

- uses: myparcelnl/actions/setup-git-credentials@v4
id: credentials
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ jobs:
with:
node-version: ${{ vars.NODE_VERSION }}

- uses: ./.github/actions/build
- uses: myparcelnl/actions/nx-run-many@v4
env:
NX_BRANCH: production
with:
target: 'build'
args: '--runner=cloud'

- uses: actions/upload-pages-artifact@v3
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@ jobs:
with:
node-version: ${{ vars.NODE_VERSION }}

- name: 'Run tests'
shell: bash
- uses: myparcelnl/actions/nx-run-many@v4
env:
NX_BRANCH: ${{ github.event.inputs.branch || github.head_ref || github.ref }}
#language=bash
run: |
yarn nx run-many \
--runner=cloud \
--parallel=1 \
--target=test:coverage \
--output-style=static
with:
target: 'test:coverage'
args: '--runner=cloud --parallel=1'

- name: 'Rename coverage files'
shell: bash
Expand Down

0 comments on commit b8fc7cc

Please sign in to comment.