Implement input validation and supporting tests with automation of the tests via actions.
This commit is contained in:
25
.gitea/workflows/run_tests.yaml
Normal file
25
.gitea/workflows/run_tests.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Run Jest tests
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
runs-on: ubuntu-22.04
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup up Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Run Tests
|
||||
run: npm test
|
||||
Reference in New Issue
Block a user