Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Jan 10, 2023
0 parents commit 3fb9120
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
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"]
37 changes: 37 additions & 0 deletions README.md
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
```
8 changes: 8 additions & 0 deletions action.yml
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
8 changes: 8 additions & 0 deletions entrypoint.sh
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 $*

0 comments on commit 3fb9120

Please sign in to comment.