Some refactoring, add cursor functionality and simple examples #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
# Trigger the workflow on push or pull request | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Define the jobs to run | |
jobs: | |
test: | |
# Use the latest Ubuntu environment | |
runs-on: ubuntu-latest | |
# Define the steps for this job | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 # Specify your required Node.js version | |
# Install dependencies | |
- name: Install dependencies | |
run: npm install | |
# Run tests | |
- name: Run tests | |
run: npm test |