Skip to content

Add GitHub Actions CI for Jest tests #1

Add GitHub Actions CI for Jest tests

Add GitHub Actions CI for Jest tests #1

Workflow file for this run

name: DAAP Token CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x] # Test on multiple Node.js versions
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run Jest tests
run: npm test
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v2
with:
name: test-results
path: test-results/