-
Notifications
You must be signed in to change notification settings - Fork 115
65 lines (54 loc) · 1.55 KB
/
linter.yml
File metadata and controls
65 lines (54 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Lint Code Base
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
on:
workflow_dispatch:
push:
branches-ignore:
- "master"
pull_request:
branches:
- "master"
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
FILTER_REGEX_EXCLUDE: .github/*
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell-compat:
name: Shell compatibility (.dappnode_profile)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Install zsh (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y zsh
- name: Parse check (bash)
run: bash -n .dappnode_profile
- name: Parse check (zsh)
run: zsh -n .dappnode_profile
- name: Source check (bash)
run: bash -lc 'set -euo pipefail; source ./.dappnode_profile'
- name: Source check (zsh)
run: zsh -lc 'set -e; source ./.dappnode_profile; alias dappnode_status >/dev/null'