Adding Nix Flake #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Set TERM environment variable | |
run: echo "TERM=xterm-256color" >> $GITHUB_ENV | |
- name: Install BATS. | |
run: sudo apt update && sudo apt install -y bats | |
- name: Run Unit Tests. | |
run: script -q -c "bats tests/" | |
- name: Success. | |
if: success() | |
run: echo "Unit Testing Passed." | |
- name: Failure. | |
if: failure() | |
run: echo "Unit Testing Failed." |