docs: fix code coverage option (#105) #188
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 environment-variables input on windows | |
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 | |
secrets: | |
# We provide a fallback value here because we have no way to share the secrets namespace with contributor forks | |
NPM_TOKEN: ${{ secrets.SECRET_FOR_INTEGRATION_TEST || 'SOME_NOT_SO_SECRET_VALUE' }} | |
# NOTE: We cannot include these secrets in the integration tests otherwise they will interfere with the real connection to Nx Cloud | |
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.SECRET_FOR_INTEGRATION_TEST }} | |
# NX_CLOUD_AUTH_TOKEN: ${{ secrets.SECRET_FOR_INTEGRATION_TEST }} | |
with: | |
runs-on: windows-latest | |
working-directory: ./integration-tests/npm | |
environment-variables: | | |
MY_BOOLEAN=true | |
CAPITAL_BOOLEAN =FALSE | |
SOME_NUMBER= 42 | |
OTHER_TEXT = some other "text" | |
parallel-commands: | | |
node -e "if(process.env.SOME_NUMBER == 42) console.log('Number parsing successful'); else { throw new Error('Number parsing failed!');}" | |
node -e "if(process.env.MY_BOOLEAN == 'true') console.log('Boolean parsing successful'); else { throw new Error('Boolean parsing failed!');}" | |
node -e "if(process.env.CAPITAL_BOOLEAN == 'false') console.log('Capital boolean parsing successful'); else { throw new Error('Capital boolean parsing failed!');}" | |
node -e "if(process.env.OTHER_TEXT == 'some other \\"text\\"') console.log('Text parsing successful'); else { throw new Error('Text parsing failed!');}" | |
node -e "if(process.env.NPM_TOKEN == 'SOME_NOT_SO_SECRET_VALUE') console.log('NPM_TOKEN secret parsing successful'); else { throw new Error('NPM_TOKEN secret parsing failed!');}" | |
parallel-commands-on-agents: | | |
node -e "if(process.env.SOME_NUMBER == 42) console.log('Number parsing on agent successful'); else { throw new Error('Number parsing on agent failed!');}" | |
node -e "if(process.env.MY_BOOLEAN == 'true') console.log('Boolean parsing on agent successful'); else { throw new Error('Boolean parsing on agent failed!');}" | |
node -e "if(process.env.CAPITAL_BOOLEAN == 'false') console.log('Capital boolean parsing on agent successful'); else { throw new Error('Capital boolean parsing on agent failed!');}" | |
node -e "if(process.env.OTHER_TEXT == 'some other \\"text\\"') console.log('Text parsing on agent successful'); else { throw new Error('Text parsing on agent failed!');}" | |
node -e "if(process.env.NPM_TOKEN == 'SOME_NOT_SO_SECRET_VALUE') console.log('NPM_TOKEN secret parsing successful'); else { throw new Error('NPM_TOKEN secret parsing failed!');}" | |
agents: | |
name: Nx Cloud - Agents | |
uses: ./.github/workflows/nx-cloud-agents.yml | |
with: | |
runs-on: windows-latest | |
working-directory: ./integration-tests/npm | |
number-of-agents: 3 |