docs: fix code coverage option #134
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - integration test artifacts | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
main: | |
name: Nx Cloud - Main Job | |
uses: ./.github/workflows/nx-cloud-main.yml | |
with: | |
working-directory: ./integration-tests/npm | |
parallel-commands-on-agents: | | |
npx nx run react-app:build | |
artifacts-path: ./integration-tests/npm/dist/ | |
agents: | |
name: Nx Cloud - Agents | |
uses: ./.github/workflows/nx-cloud-agents.yml | |
with: | |
working-directory: ./integration-tests/npm | |
number-of-agents: 1 | |
check-artifact: | |
needs: main | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Downloading artifacts" | |
uses: actions/download-artifact@v4 | |
with: | |
name: nx-main-artifacts | |
path: dist | |
- run: node -e "if(fs.existsSync('dist/apps/react-app')) console.log('Artifacts are here...'); else { throw new Error('Artifacts do not exist!');}" |