hato-botのCIを反映するよ! #6513
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
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 | |
JAVASCRIPT_DEFAULT_STYLE: prettier | |
VALIDATE_JAVASCRIPT_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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
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 |