diff --git a/.github/workflows/validate-docker-compose.yml b/.github/workflows/validate-docker-compose.yml new file mode 100644 index 0000000..a089992 --- /dev/null +++ b/.github/workflows/validate-docker-compose.yml @@ -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 \ No newline at end of file