-
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.
- Loading branch information
0 parents
commit 3fb9120
Showing
4 changed files
with
61 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,8 @@ | ||
FROM composer:latest | ||
|
||
RUN composer global require tightenco/duster --no-progress --dev | ||
ENV PATH="/tmp/vendor/bin:${PATH}" | ||
|
||
COPY "entrypoint.sh" "/entrypoint.sh" | ||
RUN chmod +x /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,37 @@ | ||
# GitHub Action for Tighten Duster | ||
|
||
GitHub Action for the [Tighten Duster](https://github.com/tighten/duster) package. | ||
|
||
## Usage | ||
|
||
Use with [GitHub Actions](https://github.com/features/actions) | ||
|
||
```yml | ||
# .github/workflows/duster.yml | ||
name: Duster | ||
on: pull_request | ||
jobs: | ||
duster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: "duster" | ||
uses: tighten/duster-action@v1 | ||
``` | ||
To use additional Duster options use `args`: | ||
|
||
```yml | ||
# .github/workflows/duster.yml | ||
name: Duster | ||
on: pull_request | ||
jobs: | ||
duster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: "duster" | ||
uses: tighten/duster-action@v1 | ||
with: | ||
args: --using=tlint,pint | ||
``` |
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,8 @@ | ||
name: Tighten Duster | ||
description: Automatically apply Tighten's default code style for Laravel apps. | ||
branding: | ||
icon: 'plus' | ||
color: 'yellow' | ||
runs: | ||
using: docker | ||
image: Dockerfile |
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,8 @@ | ||
#!/bin/sh -l | ||
|
||
set -e | ||
|
||
echo "Running: duster" $* | ||
|
||
duster --version | ||
duster $* |