aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2025-06-26 20:09:06 +0200
committerstonedDiscord <Tukz@gmx.de>2025-06-26 20:09:06 +0200
commit90b2593900fa36c0a48bf94983f9b4140f4fc04e (patch)
tree83ad2b85fd1980dce81566c97197381552c55739 /.github
parent5a1da6e7095b1709c9cc2bc87672755672c67e03 (diff)
only deploy if tests pass
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml4
-rw-r--r--.github/workflows/test.yml18
2 files changed, 3 insertions, 19 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index be37f83..4f47e8e 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -14,12 +14,14 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
- node-version: '14'
+ node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Build Project
run: npm run build
+ - name: Run Tests
+ run: npm test
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
deleted file mode 100644
index 8a3b6a4..0000000
--- a/.github/workflows/test.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-name: Test CI
-
-on: [push, pull_request]
-
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Setup Node
- uses: actions/setup-node@v4
- with:
- node-version: 14
- - name: Install Dependencies
- run: npm install
- - name: Run Tests
- run: npm test