Merge pull request #604 from dxw/dependabot/github_actions/dxw/govpre… #1390
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
on: | |
- push | |
- pull_request | |
env: | |
PLUGIN_NAME: dxw-sec-api | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: shivammathur/setup-php@2.30.5 | |
with: | |
php-version: "7.4" | |
coverage: none | |
tools: composer | |
- name: Install dependencies | |
run: | | |
cd "wp-content/plugins/$PLUGIN_NAME" | |
composer --no-interaction install | |
- name: Run tests | |
run: | | |
cd "wp-content/plugins/$PLUGIN_NAME" | |
vendor/bin/peridot specs |