with @swc/core@nightly #195
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: with @swc/core@nightly | |
on: | |
schedule: | |
- cron: "0 18 * * *" | |
env: | |
CARGO_INCREMENTAL: 0 | |
RUST_LOG: "debug" | |
DIFF: 0 | |
RUST_MIN_STACK: 4194304 | |
NODE_ENV: "development" | |
CARGO_TERM_COLOR: always | |
jobs: | |
node-test-nightly: | |
name: "@swc/core@nightly test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".node-version" | |
- uses: pnpm/action-setup@v2 | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- run: pnpm add -D --ignore-scripts @swc/core@nightly @swc/jest@latest | |
- run: pnpm build | |
- run: pnpm test |