cli/rm command dir #1
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: 🏗 Build, lint, test / node 20 latest | ||
runs-on: ubuntu-latest | ||
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: 🐈 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: 🌲 CRWA | ||
run: | | ||
cd ../ | ||
yarn create redwood-app redwood-app -y | ||
cd redwood-app | ||
yarn | ||
echo "PROJECT_PATH=$(realpath ../redwood-app)" >> $GITHUB_ENV | ||
- name: 🔄 Sync | ||
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-dir: ./tasks/cli-e2e | ||