47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
---
|
|
name: Workflows CI
|
|
|
|
# yamllint disable-line rule:truthy
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
lint-shellcheck:
|
|
name: Shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⤵️ Check out code from GitHub
|
|
uses: actions/checkout@v3
|
|
- name: 🚀 Run Shellcheck
|
|
uses: ludeeus/action-shellcheck@2.0.0
|
|
env:
|
|
SHELLCHECK_OPTS: -s bash
|
|
|
|
lint-yamllint:
|
|
name: YAMLLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⤵️ Check out code from GitHub
|
|
uses: actions/checkout@v3
|
|
- name: 🚀 Run YAMLLint
|
|
uses: frenck/action-yamllint@v1.4
|
|
|
|
lint-prettier:
|
|
name: Prettier
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: ⤵️ Check out code from GitHub
|
|
uses: actions/checkout@v3
|
|
- name: 🚀 Run Prettier
|
|
uses: creyD/prettier_action@v4.3
|
|
with:
|
|
prettier_options: --write **/*.{json,js,md,yaml}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|