Skip to content

Refactor GitHub Actions workflow for CI #12

Refactor GitHub Actions workflow for CI

Refactor GitHub Actions workflow for CI #12

name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build project
run: npm run build