Skip to content
This repository has been archived by the owner on Mar 6, 2021. It is now read-only.

Commit

Permalink
Enhancement: Actually run action during build
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 1, 2020
1 parent 53ceddb commit 3627b3a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ branches:
required_status_checks:
contexts:
- "Build"
- "Run"
strict: false
restrictions: null

Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,26 @@ jobs:

- name: "Run Docker image with custom behaviour"
run: "docker run --interactive --rm --workdir=/app --volume ${GITHUB_WORKSPACE}/.build:/app ${{ env.DOCKER_IMAGE }}:latest --indent-size=1 --indent-style=tab --no-update-lock"

run:
name: "Run"

runs-on: "ubuntu-latest"

env:
DOCKER_IMAGE: "ergebnis/composer-normalize-action"

steps:
- name: "Checkout"
uses: "actions/[email protected]"

- name: "Copy composer.json from .build into root directory"
uses: "cp .build/composer.json composer.json"

- name: "Run composer-normalize-action with default behavior"
uses: "./"

- name: "Run composer-normalize-action with custom behavior"
uses: "./"
with:
args: "--indent-size=1 --indent-style=tab --no-update-lock"

0 comments on commit 3627b3a

Please sign in to comment.