Skip to content

ci: init

ci: init #1

Workflow file for this run

name: CI
on:
push:
branches:
- main # Change to your default branch if different
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify the Node.js version
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test --if-present
- name: Build the project
run: npm run build --if-present