Skip to content

esm for crwa wip

esm for crwa wip #13

Workflow file for this run

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:
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: Set up test project
run: |
yarn build:pack
PROJECT_PATH=$(yarn set-up-test-project)
echo "PROJECT_PATH=$PROJECT_PATH" >> $GITHUB_ENV
working-directory: ./packages/create-redwood-app
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
- name: 🧪 Test
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
sudo apt-get update
sudo apt-get install expect
./tests/e2e_prompts.sh
working-directory: ./packages/create-redwood-app
env:
PROJECT_PATH: ${{ env.PROJECT_PATH }}
# - name: 🧪 Test
# run: |
# git config --global user.email "you@example.com"
# git config --global user.name "Your Name"
# yarn test e2e
# working-directory: ./packages/create-redwood-app
# env:
# PROJECT_PATH: ${{ env.PROJECT_PATH }}