002ace202f
Bumps [actions/checkout](https://github.com/actions/checkout) from 1 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v1...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Lint
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lua:
|
|
name: Lua
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Dependencies
|
|
run: sudo apt-get -y update && sudo apt-get -y install lua-check
|
|
- name: Install example site
|
|
run: ln -s ./docs/site-example ./site
|
|
- name: Lint Lua code
|
|
run: make lint-lua
|
|
|
|
sh:
|
|
name: Shell
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Dependencies
|
|
run: sudo apt-get -y update && sudo apt-get -y install shellcheck
|
|
- name: Install example site
|
|
run: ln -s ./docs/site-example ./site
|
|
- name: Lint shell code
|
|
run: make lint-sh
|
|
|
|
editorconfig:
|
|
name: Editorconfig
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Dependencies
|
|
run: sudo apt install curl tar
|
|
- name: Install editorconfig-checker
|
|
env:
|
|
VERSION: 2.7.0
|
|
OS: linux
|
|
ARCH: amd64
|
|
run: |
|
|
curl -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz
|
|
tar xzf ec-$OS-$ARCH.tar.gz
|
|
sudo mv ./bin/ec-$OS-$ARCH /usr/bin/editorconfig-checker
|
|
sudo chmod +x /usr/bin/editorconfig-checker
|
|
- name: Install example site
|
|
run: ln -s ./docs/site-example ./site
|
|
- name: Lint editorconfig
|
|
run: make lint-editorconfig
|