Skip to content

Fix: Support multiple compose files in swarm mode #162

Fix: Support multiple compose files in swarm mode

Fix: Support multiple compose files in swarm mode #162

Workflow file for this run

name: "Lint"
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
pull-requests: write
statuses: write
checks: write
steps:
- name: "Checkout"
uses: actions/checkout@v5
#- name: "Debug event.json"
# continue-on-error: true
# run: cat "${GITHUB_EVENT_PATH}"
#- name: "Debug CTX github"
# continue-on-error: true
# env:
# GITHUB_CTX: ${{ toJSON(github) }}
# run: echo "$GITHUB_CTX"
#- name: "Debug Environment"
# continue-on-error: true
# run: env
- name: "ShellCheck"
if: ${{ !cancelled() }}
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -x
with:
scandir: src
- name: "prettier"
if: ${{ !cancelled() }}
run: |
echo "::group::Install"
npm install prettier
echo "::endgroup::"
npx prettier --check .
- name: "yamllint"
if: ${{ !cancelled() }}
env:
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
run: |
echo "::group::List Files"
yamllint -d '${{ env.CONFIG }}' --list-files .
echo "::endgroup::"
yamllint -d '${{ env.CONFIG }}' .
- name: "actionlint"
if: ${{ !cancelled() }}
run: |
echo "::group::Download"
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
echo "loc: ${loc}"
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
echo "tag: ${tag}"
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
echo "url: ${url}"
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
file "${RUNNER_TEMP}/actionlint"
"${RUNNER_TEMP}/actionlint" --version
echo "::endgroup::"
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
- name: "hadolint"
if: ${{ !cancelled() }}
uses: hadolint/[email protected]
with:
dockerfile: Dockerfile
ignore: DL3018
#- name: "Vale"
# if: ${{ !cancelled() }}
# uses: errata-ai/[email protected]
#- name: "SonarQube"
# uses: SonarSource/sonarqube-scan-action@v4
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}