mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install asdf dependencies
|
|
uses: asdf-vm/actions/install@v1
|
|
|
|
- name: Run ShellCheck
|
|
run: scripts/shellcheck.bash
|
|
|
|
shellfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install asdf dependencies
|
|
uses: asdf-vm/actions/install@v1
|
|
|
|
- name: List file to shfmt
|
|
run: shfmt -f .
|
|
|
|
- name: Run shfmt
|
|
run: scripts/shfmt.bash
|
|
|
|
checkstyle-py:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.7.13"
|
|
|
|
- name: Run checkstyle.py
|
|
run: scripts/checkstyle.py
|
|
|
|
actionlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Check workflow files
|
|
uses: docker://rhysd/actionlint:1.6.23
|
|
with:
|
|
args: -color
|