Skip to content

Setting up Automated Unit Testing #1

Setting up Automated Unit Testing

Setting up Automated Unit Testing #1

Workflow file for this run

name: Unit Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-testing:
runs-on: ubuntu-latest
steps:
- name: Checkout.
uses: actions/checkout@v4
- name: Install BATS.
run: sudo apt update && sudo apt install -y bats
- name: Run Unit Tests.
run: bats --tap tests/
- name: Success.
if: success()
run: echo "Code Formatting Passed."
- name: Failure.
if: failure()
run: echo "Code Formatting Failed."