Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): run lint checks separately from tests #634

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 30 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x, 21.x]
node-version: [16.x, 18.x, 20.x, 21.x, 22.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Restore dependencies cache
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: node_modules
Expand All @@ -39,12 +39,36 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: npm i
- name: Test
run: npm run test
run: npm run test-unit
lint:
name: Run ESLint

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Restore dependencies cache
uses: actions/cache@v4
id: cache
with:
path: node_modules
key: ${{ matrix.os }}-${{ matrix.node-version }}-node_modules-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.node-version }}-node_modules-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm i
- name: Test
run: npm run lint && npm run check-prettier && npm run compile-typescript
bun:
name: Test on Bun
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
Expand Down
Loading