Skip to content

Commit

Permalink
Update lint-and-test.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadJaziraly committed Dec 25, 2024
1 parent 0aea730 commit 494fee4
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/lint-and-test.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,34 @@
name: Lint and Test
on: push

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['20.x', '22.x', '23.x']
node-version: [10, 12, 14]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci
- run: npm test
run: npm install

- name: Run linting
run: npm run eslint

- name: Run tests
run: npm test

0 comments on commit 494fee4

Please sign in to comment.