Skip to content

Commit

Permalink
action for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
erdembircan committed Nov 13, 2023
1 parent 2d16818 commit 2e54cca
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/branch-action-testing.yml
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'

0 comments on commit 2e54cca

Please sign in to comment.