Skip to content

build: update github action version to v4 #38

build: update github action version to v4

build: update github action version to v4 #38

Workflow file for this run

name: "Automated test suite"
on:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches: ["main"]
paths-ignore:
- '**/*.md'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Clone bats repository
uses: actions/checkout@v4
with:
repository: bats-core/bats-core
ref: ${{ vars.BATS_VERSION }}
path: bats
- name: Install bats
run: sudo ./install.sh /usr/local
working-directory: bats
- name: Install PHP and composer
uses: shivammathur/setup-php@v2
with:
php-version: ${{ vars.TEST_SUITE_PHP_VERSION }}
tools: composer:${{ vars.TEST_SUITE_COMPOSER_VERSION }}, phpcs:${{ vars.TEST_SUITE_PHPCS_VERSION }}
- name: Run tests
run: bats --tap tests