formatが間違ってたので直してあげたよ! #6750
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pr-test | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
pr-super-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
python-version-file: .python-version | |
cache: pipenv | |
- name: Install pipenv | |
run: bash "${GITHUB_WORKSPACE}/scripts/pipenv_install.sh" | |
- name: Set venv path | |
env: | |
DEST_PATH: "/home/runner/work/_temp/_github_workflow/.venv" | |
run: bash "${GITHUB_WORKSPACE}/scripts/pr_test/pr_super_lint/set_venv_path.sh" | |
- name: Set up Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
cache: npm | |
node-version-file: package.json | |
- name: Install dependencies | |
run: bash "${GITHUB_WORKSPACE}/scripts/pr_test/pr_super_lint/npm_ci.sh" | |
- name: Lint files | |
uses: super-linter/super-linter/slim@b92721f792f381cedc002ecdbb9847a15ece5bb8 # v7.1.0 | |
env: | |
VALIDATE_ALL_CODEBASE: true | |
VALIDATE_SQLFLUFF: false | |
VALIDATE_CHECKOV: false # TODO: checkovが依存するopenaiのバージョンがアップデートされたら削除 | |
VALIDATE_JSCPD: false | |
TYPESCRIPT_DEFAULT_STYLE: prettier | |
VALIDATE_TYPESCRIPT_STANDARD: false | |
LINTER_RULES_PATH: . | |
FILTER_REGEX_EXCLUDE: ".*assets/.*.txt" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
WORKON_HOME: "" | |
PYTHONPATH: ${{ env.PYTHONPATH }} | |
pr-dotenv-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Lint dotenv | |
uses: dotenv-linter/action-dotenv-linter@9c9a09ba60235ae0b92b2e2ed8f4268ac76d075f # v2.23.0 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true |