mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-03-13 22:23:14 +01:00

Prepare GitHub Actions checkout for future update where we need to pin the branch as 'master' will not be the default branch anymore.
35 lines
576 B
YAML
35 lines
576 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
name: Lint
|
|
|
|
jobs:
|
|
shellcheck:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
|
|
- name: shellcheck
|
|
uses: ludeeus/action-shellcheck@0.4.1
|
|
env:
|
|
SHELLCHECK_OPTS: -e SC1091,SC2164,SC2034,SC1072,SC1073,SC1009
|
|
|
|
shfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
ref: master
|
|
|
|
- name: shfmt
|
|
uses: bltavares/actions/shfmt@master
|
|
env:
|
|
SHFMT_ARGS: -d
|