mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 22:31:09 +03:00
38 lines
893 B
YAML
38 lines
893 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- '**.sh'
|
|
pull_request:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- '**.sh'
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
LANG: C.UTF-8
|
|
container:
|
|
image: docker.io/ubuntu:24.04
|
|
steps:
|
|
- name: Check out pull request code
|
|
uses: actions/checkout@v4
|
|
if: github.event_name == 'pull_request'
|
|
with:
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
if: github.event_name == 'push'
|
|
|
|
- name: Install shellcheck
|
|
run: apt update && apt install -y shellcheck bash && shellcheck --version
|
|
|
|
- name: Check shell scripts
|
|
run: shopt -s globstar && ls **/*.sh && shellcheck -x -P "SCRIPTDIR" --severity=info **/*.sh
|
|
shell: bash
|