chore: bump @vercel/ncc from 0.36.0 to 0.38.0 #95
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: Branch Tests | |
on: | |
push: | |
branches-ignore: | |
- main | |
- releases/** | |
- dependabot/** | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- '.husky/**' | |
pull_request: | |
branches: | |
- main | |
- releases/** | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- '.husky/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '16.x' | |
- name: Setup PNPM | |
uses: pnpm/[email protected] | |
with: | |
version: 7.9.0 | |
run_install: false | |
- name: Determine pnpm cache directory | |
id: pnpm-cache | |
run: echo "dir=$(pnpm config get cache)" >> $GITHUB_OUTPUT | |
- name: Restore npm cache | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.pnpm-cache.outputs.dir}} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install & Test | |
run: pnpm install && pnpm test | |
test-save: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: RushJS Helper | |
uses: ./ | |
with: | |
working-directory: __tests__/data | |
- name: Collect test date | |
shell: bash | |
run: echo "testDate='$(date)'" >> $GITHUB_ENV | |
- name: Generate files in common/temp | |
shell: bash | |
run: | | |
echo "test: '${{ env.testDate }}'" > __tests__/data/common/config/rush/pnpm-lock.yaml | |
echo "{ \"test\": \"${{ env.testDate }}\" }" > __tests__/data/rush.json | |
__tests__/create-cache-files.sh ${{ runner.os }} __tests__/data/common/temp | |
outputs: | |
testDate: ${{ env.testDate }} | |
test-restore: | |
needs: test-save | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: RushJS Helper | |
uses: ./ | |
with: | |
working-directory: __tests__/data | |
- name: Verify cache files in common/temp | |
shell: bash | |
run: __tests__/verify-cache-files.sh ${{ runner.os }} __tests__/data/common/temp |