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

(ci): Merge Lint Check Workflows into a Single Workflow checks.yml #873

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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.js Compatibility Checks
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 }}"
Loading