feature: pr_modified_files_only flag (#8) #40
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: "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 |