mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
39 lines
929 B
YAML
39 lines
929 B
YAML
name: lint-tests
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- c-main
|
|
- c-3.2
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint-all:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
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@v4
|
|
if: failure()
|
|
with:
|
|
name: testsuite-logs-${{ github.job }}
|
|
path: |
|
|
lint.log
|
|
retention-days: 5
|