Skip to content

Commit

Permalink
test: linting of Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cefritu committed Mar 24, 2024
1 parent 57dd543 commit faea78f
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Format check on push
on:
pull_request:
types: [opened, reopened, edited, synchronize, ready_for_review]
# branches:
# - feature/software-quality-tools

push:
branches:
- feature/software-quality-tools

jobs:
dotnet-format:
runs-on: ubuntu-latest
Expand All @@ -25,13 +28,18 @@ jobs:
- name: Format
run: dotnet format ./csharp-minitwit/csharp-minitwit.sln --verbosity diagnostic

- name: Lint Dockerfile
uses: hadolint/hadolint-action@master
with:
dockerfile: "Dockerfile"

# - name: Lint C# code
# run: dotnet build

- name: Push changes
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git commit -am "Automated formatting"
git push
- name: Lint C# code
run: dotnet build

0 comments on commit faea78f

Please sign in to comment.