From 0dafeb6d7264e03dce72f91ffa1ce9f930133f8c Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Mon, 7 Mar 2022 10:41:41 -0500 Subject: Updating github action --- .github/workflows/nodejs.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b37178b..e652197 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -12,13 +12,12 @@ jobs: 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: Test + run: npm run test + - name: Build + run: npm run build - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.0.0 with: -- cgit From bea23c3a9377f2bc6d6ea824ca408c14af64c3ae Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Mon, 7 Mar 2022 10:54:52 -0500 Subject: Run on pull request --- .github/workflows/nodejs.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e652197..a2db377 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,7 +1,6 @@ name: Node CI -on: [push] - +on: [push, pull_request] jobs: build: -- cgit From c665571c930d877316940eae53e7e79640411aae Mon Sep 17 00:00:00 2001 From: "caleb.mabry.15@cnu.edu" Date: Mon, 7 Mar 2022 11:41:19 -0500 Subject: Updated workflows --- .github/workflows/deploy.yml | 21 +++++++++++++++++++++ .github/workflows/nodejs.yml | 24 ------------------------ .github/workflows/test.yml | 15 +++++++++++++++ 3 files changed, 36 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .github/workflows/nodejs.yml create mode 100644 .github/workflows/test.yml (limited to '.github/workflows') diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d1bbeaa --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,21 @@ +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: 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. \ No newline at end of file diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml deleted file mode 100644 index a2db377..0000000 --- a/.github/workflows/nodejs.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Node CI - -on: [push, pull_request] -jobs: - build: - - 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: Test - run: npm run test - - name: Build - run: npm run 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. 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 -- cgit