Skip to content
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
23 changes: 6 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,21 @@
# Added Jest testing step for foundational CI/CD improvement

name: Lint and Test JavaScript
name: Lint

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]

branches: [ main ]

jobs:
lint-and-test:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
Copy link
Collaborator

@leandrumartin leandrumartin Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the "Setup Node.js" step removed? As far as I'm aware, this would be necessary for both of the workflows.

uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install

- name: Run ESLint
- name: Run lint
run: npm run lint

- name: Run Jest Tests
run: npm test
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test