chore: nightly job #3
Workflow file for this run
This file contains hidden or 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: Nighlty | |
| on: | |
| # Runs every night at 2 AM | |
| schedule: | |
| - cron: '0 2 * * *' | |
| # Manaual trigger | |
| workflow_dispatch: | |
| # Remove this one before merging | |
| pull_request: | |
| concurrency: | |
| group: nightly-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9.11.0 | |
| # Cache node_modules | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - uses: nrwl/nx-set-shas@v4 | |
| - name: Typecheck and lint | |
| run: pnpm lint typecheck | |
| - name: Run tests | |
| run: pnpm test | |
| - name: Build framework | |
| run: pnpm build | |
| - name: Run end-to-end tests | |
| run: | | |
| # Run in background | |
| pnpm verdaccio:init & | |
| npx [email protected] http://localhost:4873 | |
| pnpm verdaccio:publish | |
| NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm e2e | |
| - name: Deploy template | |
| run: | | |
| cd .. | |
| NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm create @callstack/rnef-app \ | |
| --registry http://localhost:4873 \ | |
| nightly-deploy \ | |
| --template=default \ | |
| --platfrom=ios --platform=android \ | |
| --plugin=metro | |
| cd nightly-deploy | |
| NPM_CONFIG_REGISTRY=http://localhost:4873 pnpm install | |
| - name: Build Android template | |
| run: pnpm rnef build:android |