cli/rm command dir #6
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: CLI | |
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 | |
jobs: | |
cli: | |
name: CLI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ⬢ Enable Corepack | |
run: | | |
corepack enable | |
corepack prepare yarn@stable --activate | |
- name: ⬢ Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- 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 git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Your Name" | |
- name: 🌲 CRWA | |
run: | | |
pwd | |
cd ../ | |
pwd | |
yarn create redwood-app redwood-app | |
pwd | |
cd redwood-app | |
pwd | |
yarn | |
pwd | |
echo "PROJECT_PATH=$(realpath ../redwood-app)" >> $GITHUB_ENV | |
- name: 📦 Add framework packages | |
run: | | |
yarn node ./tasks/cli-e2e/sync.mjs $PROJECT_PATH | |
- name: 🧪 Test | |
run: | | |
PROJECT_PATH=$PROJECT_PATH yarn node --experimental-vm-modules $(yarn bin jest) | |
working-directory: ./tasks/cli-e2e |