Skip to content

Commit

Permalink
prod build test
Browse files Browse the repository at this point in the history
  • Loading branch information
erdembircan committed Nov 13, 2023
1 parent 66e2051 commit d29f21f
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/branch-action-testing.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
name: Development Build
name: Production 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

php-tests:
uses: ./.github/workflows/php-tests-template.yml
needs: server-setup

js-tests:
uses: ./.github/workflows/js-tests-template.yml
needs: server-setup

build:
if: github.event_type != 'pull_request'
name: Build plugin for development
needs: [ server-setup ]
needs: [ php-tests , js-tests ]
runs-on: ubuntu-latest

steps:
Expand All @@ -44,9 +37,9 @@ jobs:
run: npm run lint

- name: Build JS
run: npm run compress-plugin-dev
run: npm run build

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
message: 'development build'
message: 'production build'

0 comments on commit d29f21f

Please sign in to comment.