Update micromatch #332
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: Run tests | |
on: | |
- workflow_dispatch | |
- workflow_call | |
- push | |
- pull_request | |
jobs: | |
test: | |
# Don't run for pull requests from this repository to avoid duplicate builds (push also triggers build). | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
name: "Test and Build" | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run checks | |
run: | | |
pnpm run ci:test | |
call_version: | |
if: github.ref == 'refs/heads/main' | |
name: "Publish or create version PR" | |
uses: "./.github/workflows/version.yml" | |
needs: test | |
secrets: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |