Skip to content

Commit

Permalink
project: Setup CI/CD for running Node.js tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacingBat3 committed Nov 17, 2024
1 parent 235d3e5 commit 1f8062d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Workflow that runs Node.js tests on a repository
# TODO: Cache code for faster build times and type processing.
name: Node.js test runner

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: latest
- name: Install dependencies
run: "npm ci"
- name: Build project
run: "npm run build"
- name: Run tests
run: "npm test"

0 comments on commit 1f8062d

Please sign in to comment.