Skip to content

Commit

Permalink
Merge pull request #873 from usamaidrsk/ci-add-lint-checks
Browse files Browse the repository at this point in the history
(ci): Merge Lint Check Workflows into a Single Workflow `checks.yml`
  • Loading branch information
sudhanshutech authored Feb 3, 2025
2 parents 93b7025 + b128272 commit b8ea04e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 69 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/checks.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/lint.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/node-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Node version and Lint Check
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- '*'
paths-ignore:
- 'system/**/*'
- '.github/**/*'
- '*.md'

jobs:
compatibility-check:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install

- name: Lint Check
run: npm run lint

- name: Prettier Check
run: npm run format:check

- name: Build Project
run: npm run build

- name: Run Tests
run: npm run test

- name: Log Node.js Version
run: echo "Tested on Node.js version ${{ matrix.node-version }}"

0 comments on commit b8ea04e

Please sign in to comment.