diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml deleted file mode 100644 index b558945a..00000000 --- a/.github/actions/build/action.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: 'Create build' -description: 'Creates a build' - -runs: - using: composite - steps: - - name: 'Build packages' - shell: bash - #language=bash - run: | - NX_BRANCH=production yarn nx run-many \ - --runner=cloud \ - --parallel \ - --target=build \ - --output-style=static diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 719f1ec6..6fedace8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 36402176..05c220f2 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b8f094a..47d2604e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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