Skip to content

update prettier and add a test to show trailing commas are preserved #31

update prettier and add a test to show trailing commas are preserved

update prettier and add a test to show trailing commas are preserved #31

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
pull_request: {}
concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm i --frozen-lockfile
- run: pnpm run lint
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: ['18.x', '20.x', '22.x']
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm i --frozen-lockfile
- run: pnpm test
test-babel-8:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- run: pnpm i
- run: pnpm i @babel/core@^8.0.0-0 @babel/plugin-syntax-decorators@^8.0.0-0 @babel/plugin-transform-typescript@^8.0.0-0 --save
- run: pnpm test
floating:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: pnpm
- run: pnpm i --no-lockfile
- run: pnpm test