Skip to content

Testing out the jest testing tool #3

Testing out the jest testing tool

Testing out the jest testing tool #3

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
# Optionally upload build artifacts if needed
- name: Upload build artifacts (optional)
if: always()
uses: actions/upload-artifact@v3
with:
name: build
path: build # Adjust this if your build output is in a different directory