Update to eslint flat config based on antfu/eslint-config package #1
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
build-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run build | |
run: pnpm run build | |
build-inspector-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run build:inspector | |
run: pnpm run build:inspector | |
type-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run typecheck | |
run: pnpm run typecheck | |
lint-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run lint | |
run: pnpm run lint | |
vitest-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run test | |
run: pnpm run test | |
ci-req-test: | |
runs-on: self-hosted | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check all-status-check | |
run: | | |
diff \ | |
<(yq ".jobs | del(.all-status-check) | keys.[]" .github/workflows/ci.yml) \ | |
<(yq ".jobs.all-status-check.needs.[]" .github/workflows/ci.yml) | |
all-status-check: | |
runs-on: self-hosted | |
needs: [build-test, build-inspector-test, type-test, lint-test, vitest-test, ci-req-test] | |
steps: | |
- name: All status check | |
run: echo All status check passed |