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 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