21 web handle currency #335
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 | |
on: | |
pull_request: | |
push: | |
branches: ['main', 'staging'] | |
workflow_dispatch: | |
env: | |
CYPRESS_CACHE_FOLDER: ~/.cache/Cypress | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
main: | |
name: Nx Cloud - Main Job | |
uses: sebpalluel/ci/.github/workflows/nx-cloud-main.yml@latest | |
secrets: | |
ENV_FILE: ${{ secrets.ENV_FILE }} | |
with: | |
runs-on: ubuntu-latest | |
artifacts-path: | | |
dist/cypress | |
artifacts-name: cypress | |
environment-variables: | | |
CYPRESS_CACHE_FOLDER=~/.cache/Cypress | |
cypress_cache_path: ~/.cache/Cypress | |
node-version: 20 | |
pnpm-version: 7 | |
environment: staging | |
init-commands: | | |
pnpm exec nx-cloud record -- pnpm docker:test & pnpm docker:services | |
parallel-commands: | | |
pnpm nx workspace-lint | |
pnpm nx format:check --verbose | |
## test relying in prisma + hasura not working in parallel, docker services not available ? | |
# pnpm nx affected --target=test-prisma --ci --code-coverage | |
pnpm nx affected --target=test-integration --parallel=false --ci --code-coverage | |
## TODO set back when cypress upgraded to webpack 5, compilation error with this code `headers['Cookie'] = cookies().toString()`; | |
# pnpm nx affected --target=e2e --no-watch | |
parallel-commands-on-agents: | | |
pnpm affected:lint --parallel=3 & | |
pnpm affected:build --parallel=3 & | |
pnpm nx affected --target=test --parallel=3 --ci --code-coverage & | |
agents: | |
name: Nx Cloud - Agents | |
uses: sebpalluel/ci/.github/workflows/nx-cloud-agents.yml@latest | |
secrets: | |
ENV_FILE: ${{ secrets.ENV_FILE }} | |
with: | |
runs-on: ubuntu-latest | |
environment: staging | |
node-version: 20 | |
pnpm-version: 7 | |
number-of-agents: 3 | |
# init-commands: | | |
# pnpm prisma generate |