From 1b0cf086b7032ac276cb8ddf217ee3eaee8489dc Mon Sep 17 00:00:00 2001 From: KyroVibe Date: Mon, 18 Mar 2024 23:57:34 -0600 Subject: [PATCH] Created unit testing workflow --- .github/workflows/FissionBuild.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/FissionBuild.yml diff --git a/.github/workflows/FissionBuild.yml b/.github/workflows/FissionBuild.yml new file mode 100644 index 0000000000..6e7a0b61db --- /dev/null +++ b/.github/workflows/FissionBuild.yml @@ -0,0 +1,38 @@ +name: Fission + +on: + workflow_dispatch: {} + push: + branches: [ master, dev ] + pull_request: + branches: [ master, dev ] + +jobs: + runUnitTests: + name: Unit Tests + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: JavaScript Setup + uses: actions/setup-node@v2 + with: + node-version: 20 + - name: Install Dependencies + run: | + cd fission + npm install + - name: Unit Tests + id: unit-tests + run: | + cd fission + npm run test + continue-on-error: true + - name: Check Success + run: | + if [ ${{ steps.unit-tests.outcome }} == "success" ]; then + echo "Format Validation Passed" + else + echo "Format Validation Failed" + exit 1 + fi \ No newline at end of file