-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb8d4cf
commit 29451dc
Showing
3 changed files
with
0 additions
and
186 deletions.
There are no files selected for viewing
68 changes: 0 additions & 68 deletions
68
.github/workflows/generator-generic-ossf-slsa3-publish.yml
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +0,0 @@ | ||
name: WordPress Plugin CI/CD | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
setup: | ||
name: Setup Environment | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' # Change to your supported PHP version | ||
extensions: mbstring, zip | ||
coverage: none | ||
|
||
- name: Install PHPCS | ||
run: | | ||
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar | ||
chmod +x phpcs.phar | ||
sudo mv phpcs.phar /usr/local/bin/phpcs | ||
test: | ||
name: Run Tests | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
extensions: mbstring, zip | ||
coverage: xdebug | ||
|
||
- name: Setup WordPress | ||
run: | | ||
curl -o /tmp/wordpress.tar.gz https://wordpress.org/latest.tar.gz | ||
tar -xzf /tmp/wordpress.tar.gz -C /tmp/ | ||
mv /tmp/wordpress /tmp/wordpress-latest | ||
- name: Download PHPUnit | ||
run: | | ||
wget https://phar.phpunit.de/phpunit-9.phar | ||
chmod +x phpunit-9.phar | ||
mv phpunit-9.phar /usr/local/bin/phpunit | ||
- name: Run PHPUnit Tests | ||
env: | ||
WP_TESTS_DIR: /tmp/wordpress-latest | ||
run: phpunit | ||
This file was deleted.
Oops, something went wrong.