esm for crwa wip #8
Workflow file for this run
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: π² CRWA | ||
on: | ||
pull_request: | ||
push: | ||
branches: ['next', 'release/**'] | ||
# Cancel in-progress runs of this workflow. | ||
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
jobs: | ||
crwa: | ||
needs: check | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
name: π² CRWA | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: β¬’ Enable Corepack | ||
run: corepack enable | ||
- name: β¬’ Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: β¬’ Enable Corepack | ||
run: corepack enable | ||
- name: π Set up yarn cache | ||
uses: ./.github/actions/set-up-yarn-cache | ||
- name: π Yarn install | ||
run: yarn install --inline-builds | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
- name: ποΈ Build | ||
run: yarn build | ||
- name: ποΈ Build pack | ||
run: yarn build:pack | ||
working-directory: ./packages/create-redwood-app | ||
- name: ποΈ Set up test project | ||
run: | | ||
PROJECT_PATH=$(yarn set-up-test-project) | ||
echo "PROJECT_PATH=$PROJECT_PATH >> $GITHUB_ENV" | ||
working-directory: ./packages/create-redwood-app | ||
- name: π² CRWA | ||
run: yarn test e2e | ||
working-directory: ./packages/create-redwood-app | ||
env: | ||
PROJECT_PATH: ${{ env.PROJECT_PATH }} |