mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-15 00:09:19 +08:00
6043a035ff
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
68 lines
1.2 KiB
YAML
68 lines
1.2 KiB
YAML
name: CI
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 20
|
|
runs-on: ubuntu-latest
|
|
name: Unit Test
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
|
|
- name: Install deps
|
|
run: pnpm install
|
|
|
|
- name: Test unit
|
|
run: pnpm run test
|
|
|
|
lint:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
name: Lint
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
cache: pnpm
|
|
|
|
- name: Install deps
|
|
run: pnpm install
|
|
|
|
- name: Lint
|
|
run: pnpm run lint
|
|
|
|
- name: Check formatting
|
|
run: pnpm prettier --check .
|
|
|
|
- name: Typecheck
|
|
run: pnpm run typecheck
|