Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Raydo Matthee <raydo@skunkworks.africa>
  • Loading branch information
burnt-exe authored May 19, 2024
1 parent 99f87e0 commit 07bce32
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Run Tests

on:
push:
branches: ["main"]
pull_request:

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Cache Node.js modules
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version: '16.x'
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test

0 comments on commit 07bce32

Please sign in to comment.