Add local testing example and modify variables #25
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
on: | |
push: | |
name: Run Tests | |
jobs: | |
build: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.3.0 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build image | |
run: | | |
make build-with-cache | |
- name: Run shellcheck | |
run: | | |
sudo apt-get -y install shellcheck | |
make test | |
- name: Tests | |
run: | | |
make shellcheck | |
make test |