forked from envmodules/modules
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 929 Bytes
/
lint_tests.yaml
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
name: lint-tests
on:
push:
branches-ignore:
- c-main
- c-3.2
pull_request:
jobs:
lint-all:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install system packages
run: |
sudo apt-get -y update
sudo apt-get install -y expect-dev dejagnu python3-sphinx gzip bash tcl8.6 python3
# libtclenvmodules build requirements
sudo apt-get install -y gcc autoconf tcl8.6-dev
# add linter tools
sudo apt-get install -y shellcheck
- name: Build Modules
run: |
./configure
make
- name: Lint script files
run: |
script/mt lint
- uses: actions/upload-artifact@v3
if: failure()
with:
name: testsuite-logs-${{ github.job }}
path: |
lint.log
retention-days: 5