Skip to content

Refactor GitHub Actions workflows for PHPVM: streamline job configura… #52

Refactor GitHub Actions workflows for PHPVM: streamline job configura…

Refactor GitHub Actions workflows for PHPVM: streamline job configura… #52

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest] # Run tests on both MacOS & Ubuntu
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install Dependencies
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt update
sudo apt install -y bats
else
brew install bats
fi
- name: Run PHPVM Tests
run: |
bats test_phpvm.bats