Skip to content

feature: pr_modified_files_only flag (#8) #40

feature: pr_modified_files_only flag (#8)

feature: pr_modified_files_only flag (#8) #40

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