chores/main-branch: Convert master to main branch as default (#34) #6
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: Bats Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Git configurations | |
run: | | |
git config --global user.name "CI User" | |
git config --global user.email "ci@example.com" | |
- name: Set up Git | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git | |
- name: Install Bats | |
run: sudo apt-get install bats | |
- name: Run Bats tests | |
run: | | |
bats tests.bats |