Skip to content

Commit

Permalink
Created unit testing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Mar 19, 2024
1 parent 40e42f1 commit 1b0cf08
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/FissionBuild.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1b0cf08

Please sign in to comment.