Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow actions, add to gitignore #58

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
# Checkout the repo
# ------------------------------------------------------------------------------
- name: Checkout the repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 1000
token: ${{ secrets.GH_BOT_TOKEN }}
Expand All @@ -25,17 +25,20 @@ jobs:
run: |
num_php_files=$(git diff ${{ github.event.pull_request.base.sha }} HEAD --name-only | grep -P "\.php" | wc -l)
if [[ -z "$num_php_files" ]]; then
echo "::set-output name=value::1"
echo "value=1" >> $GITHUB_OUTPUT
echo "## No PHP Files changed, PHP tests automatically pass." >> $GITHUB_STEP_SUMMARY
elif [[ "$num_php_files" == "0" || "$num_php_files" == "" ]]; then
echo "::set-output name=value::1"
echo "value=1" >> $GITHUB_OUTPUT
echo "## No PHP Files changed, PHP tests automatically pass." >> $GITHUB_STEP_SUMMARY
else
echo "::set-output name=value::0"
echo "value=0" >> $GITHUB_OUTPUT
echo "## Found PHP file changes, running PHP tests." >> $GITHUB_STEP_SUMMARY
fi
# ------------------------------------------------------------------------------
# Checkout slic
# ------------------------------------------------------------------------------
- name: Checkout slic
uses: actions/checkout@v2
uses: actions/checkout@v4
if: steps.skip.outputs.value != 1
with:
repository: stellarwp/slic
Expand Down Expand Up @@ -132,7 +135,7 @@ jobs:
# Clone and init TEC
# ------------------------------------------------------------------------------
- name: Clone TEC
uses: actions/checkout@v2
uses: actions/checkout@v4
if: steps.skip.outputs.value != 1
with:
fetch-depth: 1
Expand Down Expand Up @@ -195,7 +198,7 @@ jobs:
# Clone and init ECP
# ------------------------------------------------------------------------------
- name: Clone ECP
uses: actions/checkout@v2
uses: actions/checkout@v4
if: steps.skip.outputs.value != 1
with:
fetch-depth: 1
Expand All @@ -209,7 +212,7 @@ jobs:
run: |
mv ${GITHUB_WORKSPACE}/events-pro ${GITHUB_WORKSPACE}/../events-pro
docker network prune -f
${SLIC_BIN} use events-pro
${SLIC_BIN} use events-pro
${SLIC_BIN} composer install --no-dev
# ------------------------------------------------------------------------------
# Set up Advanced Post Manager and run tests
Expand Down
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,41 @@ node_modules
codeception.yml
tests/*.suite.yml

# /vendor/
.DS_Store
.idea
.vscode
*.code-workspace

# Composer / Package files
node_modules
/files
/vcs
/repo

# Vendor handling.
/vendor

# Some people makes...
Makefile

# Tests - local config files
codeception.yml
tests/*.suite.yml
phpunit.xml

*.local
*.test
*.testing
codeception.tric.yml
codeception.slic.yml

# Tests - local output files
tests/_output
tests/_support/_generated

# Local packaging files
.pup-*

# get from translate.wordpress.org as needed
lang/*.po