Skip to content

Commit

Permalink
add validte docker compose linter
Browse files Browse the repository at this point in the history
zavoloklom/dclint
  • Loading branch information
sogladev committed Nov 17, 2024
1 parent 0a5f496 commit 7582a20
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/validate-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: validate-env

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
validate-docker-compose:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Run Docker Compose Lint
uses: zavoloklom/dclint

with:
entrypoint: ""
args: >
node --no-warnings /dclint/bin/dclint.js . -r -f codeclimate -o gl-codequality.json
env:
NODE_OPTIONS: "--no-warnings"

- name: Upload Code Quality Report
uses: actions/upload-artifact@v3
with:
name: gl-codequality-report
path: gl-codequality.json
retention-days: 3

0 comments on commit 7582a20

Please sign in to comment.