Skip to content

shell-bitwise: Add functions to operate with bits #86

shell-bitwise: Add functions to operate with bits

shell-bitwise: Add functions to operate with bits #86

Workflow file for this run

name: Lint
on:
push:
branches: [ master, for-master ]
pull_request:
branches: [ master, for-master ]
jobs:
check-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Developer's Certificate of Origin"
run: |
echo
echo 'Commits to check:'
jq -r '.[].id' <<-'EOF' | \
xargs -r -i git log -1 --pretty='%H%x09%s%x09%ce%x09-%(trailers:key=Signed-off-by,valueonly,separator=%x00)' '{}' | \
tee /tmp/commits | \
cut -f1,2
${{ toJSON(github.event.commits) }}
EOF
echo ''
if grep -e '-$' /tmp/commits | cut -f1,2 | grep -e '^' > /tmp/bad-commits; then
echo 'Сommits that fail verification:'
cat /tmp/bad-commits
echo ''
echo 'The DCO Signoff Check for all commits has FAILED.'
echo 'See https://github.com/legionus/libshell/blob/master/CONTRIBUTING.md'
echo ''
exit 1
fi
lint-shell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y -qq install shellcheck
- run: make verify
check-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y -qq install scdoc
- run: make man
check-shells:
runs-on: ubuntu-latest
needs:
- lint-shell
strategy:
fail-fast: false
matrix:
include:
- name: dash
pkgs: dash
- name: bash
pkgs: bash
- name: mksh
pkgs: mksh
- name: lksh
pkgs: mksh
name: "check with ${{ matrix.name }}"
steps:
- uses: actions/checkout@v4
- run: sudo apt-get -y -qq install ${{ matrix.pkgs }}
- run: make check V=1 CHECK_SHELL=/bin/${{ matrix.name }}