-
Notifications
You must be signed in to change notification settings - Fork 24
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
2d16818
commit 2e54cca
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Development Build | ||
|
||
on: | ||
push: | ||
branches: [ "55-github-actions-failure" ] | ||
|
||
jobs: | ||
branch-check: | ||
name: Check current branch | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matched: ${{steps.check.outputs.matched}} | ||
|
||
steps: | ||
- name: Check if version branch | ||
id: check | ||
run: | | ||
echo "matched=true" >> "$GITHUB_OUTPUT" | ||
server-setup: | ||
if: needs.branch-check.outputs.matched == 'true' | ||
uses: ./.github/workflows/server-setup-template.yml | ||
needs: branch-check | ||
|
||
build: | ||
if: github.event_type != 'pull_request' | ||
name: Build plugin for development | ||
needs: [ server-setup ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Clear vendor directory | ||
run: rm -rf vendor | ||
|
||
- name: Install composer non-dev dependencies | ||
run: composer install --no-dev | ||
|
||
- name: Install NPM dependencies | ||
run: npm ci -f | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Build JS | ||
run: npm run compress-plugin-dev | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
message: 'development build' |