Add linter workflow #86
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: Installer test | |
on: [push, pull_request] | |
env: | |
START_LOCAL_URL: "http://localhost:8080/start-local" | |
jobs: | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install bashunit | |
run: | | |
curl -s https://bashunit.typeddevs.com/install.sh | bash | |
- name: Setup PHP for running a local web server | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.3' | |
- name: Cache Docker images | |
uses: ScribeMD/[email protected] | |
with: | |
key: docker-${{ runner.os }}-${{ hashFiles('start-local.sh') }} | |
- name: Run the tests | |
run: | | |
./lib/bashunit |