-
Notifications
You must be signed in to change notification settings - Fork 0
ci(github): add container support for self-hosted runners #9
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
Open
dipankardas011
wants to merge
41
commits into
main
Choose a base branch
from
ci/self-hosting
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,100
−91
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5e132e8
ci(github): add container support for self-hosted runners
dipankardas011 9f26544
ci: unify env vars and ports for self-hosted runners
dipankardas011 a3c68ff
fix(ci): add --yes flag to wp-env destroy commands
dipankardas011 a8a7ab8
fixed the --yes of wp-env destroy with --force
dipankardas011 872e914
added a pause for indepth analysis
dipankardas011 c5c2ca6
disabled spcific section to be able to check the workflow
dipankardas011 7b20fa0
ci: set WP_ENV_HOME for isolated wp-env data
dipankardas011 9d1939f
ci(github): increase timeouts and fix safe.directory
dipankardas011 2686cfd
feat(ci): use dynamic outputs for job filtering
dipankardas011 572203c
ci: fix permission denied errors for test artifacts
dipankardas011 ac888b5
dbg: e2e test suite
dipankardas011 681607d
test(e2e): path for the npx
dipankardas011 58522b2
ci(e2e): giving it the wp-env test one
dipankardas011 aa57089
ci(e2e): disable Playwright webServer and clean env usage
dipankardas011 1363a77
feat(ci): set WP_BASE_URL for E2E tests in workflow
dipankardas011 3207149
ci(e2e): support host.docker.internal in e2e workflow
dipankardas011 3886236
feat(ci): improve Playwright network reliability in e2e workflow
dipankardas011 d9fc1de
feat(ci): enhance E2E reliability with socat proxy
dipankardas011 1e4d74e
feat(test): enable headless mode in Playwright config
dipankardas011 ff4a7a0
chore(e2e): remove debug flag and extend base config
dipankardas011 b457253
feat(ci): enable dynamic outputs and e2e job triggers
dipankardas011 2830f52
Apply suggestion from @dipankardas011
dipankardas011 790da09
ci: improve CI blueprint and Playwright config
dipankardas011 08be4c7
ci: update workflow dependencies and permissions
dipankardas011 752952b
ci(playground): add GitHub CLI install to PR preview workflow
dipankardas011 30511ec
ci: simplify workflows and update test commands
dipankardas011 cafed50
ci(github): fix PATH for sudo -u wpuser npm commands
dipankardas011 8117a4b
Revert "ci(github): fix PATH for sudo -u wpuser npm commands"
dipankardas011 c7e7ecf
ci(github): add npm to PATH for wpuser in workflows
dipankardas011 a244705
reverted the sudo -E to bring the system back to stability
dipankardas011 519a055
Merge branch 'main' into ci/self-hosting
justlevine cef424a
ci: restore public workflows
justlevine ae8ebf8
ci: Remove unnecessary release-public.yml
justlevine 4ba109a
ci: docs and cleanup
justlevine b33e523
ci: Fix run id
justlevine c2a226f
ci: trigger on workflow changes
justlevine 3e80ff6
ci: stop using TESTS_PORT (first pass)
justlevine 368222d
ci: remove activate plugin step
justlevine dbd3bcf
Merge branch 'main' into ci/self-hosting
justlevine 116073b
ci: more wp-env 11 fixes
justlevine 8bfb2e3
Merge branch 'main' into ci/self-hosting
justlevine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: Reusable Build | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| php-version: | ||
| required: true | ||
| type: string | ||
| artifact-name: | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} | ||
| persist-credentials: false | ||
|
|
||
| - name: Set up PHP | ||
| uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0 | ||
| with: | ||
| php-version: ${{ inputs.php-version }} | ||
| coverage: none | ||
|
|
||
| - name: Install Composer dependencies | ||
| uses: ramsey/composer-install@a35c6ebd3d08125aaf8852dff361e686a1a67947 # v3.2.0 | ||
| with: | ||
| composer-options: '--no-dev --optimize-autoloader' | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version-file: '.nvmrc' | ||
| cache: 'npm' | ||
|
|
||
| - name: Install npm dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Build plugin for release | ||
| run: npm run build:prod | ||
|
|
||
| - name: Start the Docker testing environment | ||
| uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2 | ||
| with: | ||
| timeout_minutes: 10 | ||
| max_attempts: 3 | ||
| command: npm run wp-env start | ||
|
|
||
| - name: Generate Translation files | ||
| run: npm run i18n:make-pot | ||
|
|
||
| - name: Create plugin zip | ||
| run: npm run plugin-zip | ||
|
|
||
| - name: Upload plugin zip artifact | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
| name: ${{ inputs.artifact-name }} | ||
| path: plugin-skeleton-d.zip | ||
| if-no-files-found: error |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.