aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/deploy.yml (renamed from .github/workflows/nodejs.yml)17
-rw-r--r--.github/workflows/test.yml15
2 files changed, 21 insertions, 11 deletions
diff --git a/.github/workflows/nodejs.yml b/.github/workflows/deploy.yml
index b37178b..d1bbeaa 100644
--- a/.github/workflows/nodejs.yml
+++ b/.github/workflows/deploy.yml
@@ -1,26 +1,21 @@
-name: Node CI
+name: Deploy CI
on: [push]
jobs:
build:
-
runs-on: ubuntu-latest
-
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
- - name: npm install, build, and test
- run: |
- git submodule init
- git submodule update
- npm install
- npm ci
- npm run build
+ - name: Install Dependencies
+ run: npm install
+ - 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