Skip to content

Commit

Permalink
ci: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Mar 7, 2025
1 parent 1f509ae commit 486095d
Show file tree
Hide file tree
Showing 4 changed files with 400 additions and 405 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- "main"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -17,6 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest]
node-version: [20]
fail-fast: false

steps:
- uses: actions/checkout@v4
Expand All @@ -26,16 +31,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
cache: npm

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci --no-audit

- name: ESLint - flat
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- "main"
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

Expand All @@ -17,6 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [16, 18, 20, 22]
fail-fast: false

steps:
- uses: actions/checkout@v4
Expand All @@ -26,16 +31,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v4
with:
path: node_modules
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
cache: npm

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci --no-audit

- name: Jest - flat
Expand Down
8 changes: 2 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
type Config = {
rules: Record<string, 0 | "off">;
};
export const name: "config-prettier" | undefined;

declare const config: Config;

export = config;
export const rules: Record<string, 0 | "off">;
Loading

0 comments on commit 486095d

Please sign in to comment.