[pre-commit.ci] pre-commit autoupdate (#464) #2135
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: Scripts | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run shellcheck | |
uses: ludeeus/[email protected] | |
env: | |
SHELLCHECK_OPTS: --external-sources | |
rubocop: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Run rubocop | |
run: | | |
gem install rubocop --no-document --version 1.60.1 | |
rubocop | |
run-js-linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
yarn install | |
yarn lint | |
yarn js-check | |
run-py-linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
- name: Install dependencies | |
working-directory: scripts/mirror-actors | |
run: poetry install --no-interaction --no-root | |
- name: Lint Python Code | |
working-directory: scripts/mirror-actors | |
run: poetry run pylint mirror_actors/ -f actions |