mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
* add shellcheck to ci * test ci * install bash for shellcheck * set globstar for bash * cleanup shell scripts * do not ignore automated hls tests * rm legacy build script * update shell scripts * cleanup ci * Fix misspell * cleanup ci * fail on curl error in ci
31 lines
577 B
YAML
31 lines
577 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- webv2
|
|
paths:
|
|
- '**.sh'
|
|
pull_request:
|
|
branches:
|
|
- webv2
|
|
paths:
|
|
- '**.sh'
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
LANG: C.UTF-8
|
|
container:
|
|
image: docker.io/ubuntu:22.04
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install shellcheck
|
|
run: apt update && apt install -y shellcheck bash && shellcheck --version
|
|
|
|
- name: Check shell scripts
|
|
run: shopt -s globstar && ls **/*.sh && shellcheck --severity=info **/*.sh
|
|
shell: bash
|