mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
cf532daf20
* (flags) remove index from exports * Update tsup.config, use clean:true instead of rimraf * Add changeset * pnpm-lock * update tsup config, remove unused provider entrypoints * tsup.config: update entry format * Add attw check in CI * Update .changeset/tidy-schools-retire.md --------- Co-authored-by: Dominik Ferber <dominik.ferber@gmail.com>
100 lines
1.9 KiB
YAML
100 lines
1.9 KiB
YAML
name: Quality
|
|
|
|
env:
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
prettier:
|
|
name: 'Prettier'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run Prettier check
|
|
run: pnpm prettier-check
|
|
|
|
eslint:
|
|
name: 'ESLint'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run ESLint
|
|
run: pnpm run lint
|
|
|
|
types:
|
|
name: 'TypeScript'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run TypeScript type check
|
|
run: pnpm run type-check
|
|
|
|
- name: Run `@arethetypeswrong/cli` check
|
|
run: pnpm run attw
|
|
|
|
publint:
|
|
name: 'publint'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: '.node-version'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Run Publint
|
|
run: pnpm run publint
|