mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
23 lines
586 B
YAML
23 lines
586 B
YAML
name: test
|
|
on: pull_request
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cancel running workflows
|
|
uses: styfle/cancel-workflow-action@0.13.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
- name: Set node version
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20'
|
|
- name: Enable pnpm
|
|
run: corepack enable pnpm
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Run tests
|
|
run: pnpm test
|