Skip to content

Commit

Permalink
fix(GitHub Workflow) - Adjust the GitHub Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasniebler committed Oct 4, 2024
1 parent 07831dd commit da6a169
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Exclude GitHub-specific files
/.gitattributes export-ignore
/.gitignore export-ignore
/.github/ export-ignore

# Exclude other hidden files
.* export-ignore

# Exclude GitHub templates (if applicable)
/.github/* export-ignore
29 changes: 25 additions & 4 deletions .github/workflows/plugin-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: 'build-test'

on:
push:
branches:
Expand All @@ -11,8 +12,28 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout Repository
uses: actions/checkout@v3

- name: Prepare Plugin Files
run: |
mkdir plugin-package
rsync -av --exclude='.*' \
--exclude='node_modules' \
--exclude='tests' \
--exclude='docs' \
--exclude='package.json' \
--exclude='package-lock.json' \
--exclude='webpack.config.js' \
--exclude='README.md' \
--exclude='composer.json' \
--exclude='composer.lock' \
--exclude='phpunit.xml' \
--exclude='phpcs.xml' \
--exclude='.git*' \
. plugin-package/
- name: WordPress Plugin Check
uses: wordpress/plugin-check-action@v1
- name: WordPress Plugin Check
uses: WordPress/plugin-check-action@v1
env:
PLUGIN_DIR: ${{ github.workspace }}/plugin-package

0 comments on commit da6a169

Please sign in to comment.