Skip to content

Commit

Permalink
✨ feat(.eslintrc.cjs): add ESLint configuration file for better code …
Browse files Browse the repository at this point in the history
…quality control

🔧 chore(ci.yml): update GitHub Actions workflow to include build and lint jobs for better CI/CD pipeline
  • Loading branch information
bqst committed Nov 13, 2023
1 parent 7bcb551 commit 3d52df2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 8 deletions.
File renamed without changes.
60 changes: 52 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,63 @@ on:

jobs:
build:
name: Build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build

lint:
name: Lint
needs: build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint

test:
name: Test
needs: build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Test
run: npm run test

0 comments on commit 3d52df2

Please sign in to comment.