Skip to content

Commit efd6b39

Browse files
(actions) split linting jobs (#352)
2 parents eb4543f + 378a3d1 commit efd6b39

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: CI
1+
name: Linting
22

33
on: [push, pull_request]
44

55
jobs:
6-
linting:
7-
name: Linting
6+
yamllint:
7+
name: YamlLint
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
@@ -17,9 +17,25 @@ jobs:
1717
python-version: '3.x'
1818
- name: Install YamlLint
1919
run: pip install --upgrade yamllint
20-
- name: ShellCheck
21-
run: bash -c 'shopt -s globstar; shellcheck ./**/*.bash ./**/*.sh ./**/setup'
2220
- name: YamlLint
2321
run: bash -c 'find ./ -iname '*.yaml' -or -iname '*.yml' | xargs yamllint'
22+
shellcheck:
23+
name: ShellCheck
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
with:
28+
submodules: recursive
29+
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
30+
- name: ShellCheck
31+
run: bash -c 'shopt -s globstar; shellcheck ./**/*.bash ./**/*.sh ./**/setup'
32+
bash_set_error:
33+
name: Set -e/+e Check
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
with:
38+
submodules: recursive
39+
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }}
2440
- name: Check set -e/+e
2541
run: ./.check_set-e.bash

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# tue-env-targets
2+
3+
[![Linting](https://github.com/tue-robotics/tue-env-targets/actions/workflows/main.yml/badge.svg)](https://github.com/tue-robotics/tue-env-targets/actions/workflows/main.yml)
4+
5+
TUe targets to be used by [tue-env](https://github.com/tue-robotics/tue-env).

0 commit comments

Comments
 (0)