chore(deps): update babel monorepo #820
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: E2E CLI 5.x | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
schedule: | |
# run every sunday | |
- cron: '0 0 * * 0' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
- name: Use Node | |
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: corepack | |
run: corepack enable | |
- name: pnpm enable | |
run: corepack prepare pnpm@latest-8 --activate | |
- name: set store | |
run: | | |
mkdir ~/.pnpm-store | |
pnpm config set store-dir ~/.pnpm-store | |
- name: Install | |
run: pnpm install | |
- name: Cache .pnpm-store | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | |
with: | |
path: ~/.pnpm-store | |
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }} | |
restore-keys: | | |
pnpm- | |
- name: build | |
run: pnpm build | |
- name: Cache tools | |
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | |
id: cache-tools | |
with: | |
path: ./tools/ | |
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }} | |
restore-keys: | | |
tools- | |
e2e-cli: | |
needs: [build] | |
strategy: | |
fail-fast: false | |
matrix: | |
pkg: [npm6, npm7, npm8, npm9, pnpm6, pnpm7, pnpm8, yarn1, yarn2, yarn3] | |
node: [18] | |
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | |
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: corepack | |
run: corepack enable | |
- name: pnpm enable | |
run: corepack prepare pnpm@latest-8 --activate | |
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | |
with: | |
path: ~/.pnpm-store | |
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }} | |
- name: Install | |
run: pnpm install --frozen-lockfile | |
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3 | |
with: | |
path: ./tools/ | |
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }} | |
- name: Test CLI | |
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}} |