Test the nginx configuration before reloading. This avoids crashing t… #59
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-tests" | |
on: | |
push: | |
branches: | |
- "main" | |
- "master" | |
paths: | |
- "src/scripts/**" | |
- "tests/**" | |
- ".github/workflows/**" | |
pull_request: | |
branches: | |
- "main" | |
- "master" | |
paths: | |
- "src/scripts/**" | |
- "tests/**" | |
jobs: | |
bats: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Run BATS tests | |
uses: ffurrer2/[email protected] | |
with: | |
args: ./tests |