This repository has been archived by the owner on Mar 6, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Actually run action during build
- Loading branch information
1 parent
53ceddb
commit 3627b3a
Showing
2 changed files
with
24 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ branches: | |
required_status_checks: | ||
contexts: | ||
- "Build" | ||
- "Run" | ||
strict: false | ||
restrictions: null | ||
|
||
|
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 |
---|---|---|
|
@@ -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" |