aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-07 11:41:19 -0500
committercaleb.mabry.15@cnu.edu <caleb.mabry.15@cnu.edu>2022-03-07 11:41:19 -0500
commitc665571c930d877316940eae53e7e79640411aae (patch)
treef6396236461c1e60a943a57f2d8227b9c2b639bf /.github
parentbea23c3a9377f2bc6d6ea824ca408c14af64c3ae (diff)
Updated workflows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/deploy.yml (renamed from .github/workflows/nodejs.yml)15
-rw-r--r--.github/workflows/test.yml15
2 files changed, 21 insertions, 9 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/deploy.yml
index a2db377..d1bbeaa 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/deploy.yml
@@ -1,11 +1,10 @@
-name: Node CI
+name: Deploy CI
+
+on: [push]
-on: [push, pull_request]
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- name: Checkout
uses: actions/checkout@v1
@@ -13,12 +12,10 @@ jobs:
uses: actions/setup-node@v1
- name: Install Dependencies
run: npm install
- - name: Test
- run: npm run test
- - name: Build
- run: npm run build
+ - name: Build Project
+ run: npm build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages # The branch the action should deploy to.
- folder: webAO # The folder the action should deploy.
+ folder: webAO # The folder the action should deploy. \ No newline at end of file
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 0000000..d5f9f79
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,15 @@
+name: Test CI
+
+on: [pull_request]
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+ - name: Setup Node
+ uses: actions/setup-node@v1
+ - name: Install Dependencies
+ run: npm install
+ - name: Run Tests
+ run: npm test \ No newline at end of file