aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-13 19:23:25 +0530
committerRitesh Ghosh <[email protected]>2023-08-13 19:23:25 +0530
commit87fce0354164f364142bcd9217ce2ddeac19b215 (patch)
treebd7a8ccb03afd4408933e3dc50a4e8ebd85690ca /.github/workflows
parent02663b98fba1f131fde3ac157592379c99fcf36c (diff)
downloadaniwatch-api-87fce0354164f364142bcd9217ce2ddeac19b215.tar.xz
aniwatch-api-87fce0354164f364142bcd9217ce2ddeac19b215.zip
ci(tests): added tests workflow
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/test.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..0493a3e
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,24 @@
+name: Run Tests
+
+on:
+ push:
+ branches: ["main"]
+ pull_request:
+ branches: ["main"]
+
+jobs:
+ run_tests:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+
+ - name: Setup NodeJS
+ uses: actions/setup-node@v3
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Run all tests
+ run: npm test