mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-06-23 08:47:38 +02:00
Merge branch '3.3dev' into https_rr
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
name: Build Documentation
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- "doc/testssl.1.md"
|
||||
|
||||
jobs:
|
||||
build-docs:
|
||||
runs-on: ubuntu-26.04
|
||||
# Skip fork PRs: GITHUB_TOKEN can't push to a fork's branch
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v7
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y pandoc make
|
||||
|
||||
- name: Build documentation
|
||||
working-directory: doc
|
||||
run: make -B
|
||||
# -B ensures build when doc/testssl.1.md changes. When checking out the md file
|
||||
# it probably might have a time stamp which indicates nothing has changed
|
||||
|
||||
- name: Commit and push generated doc files
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add -A
|
||||
if git diff --staged --quiet; then
|
||||
echo "No generated changes to commit"
|
||||
else
|
||||
git commit -m "Auto-generate docs from testssl.1.md [skip ci]"
|
||||
git push
|
||||
fi
|
||||
|
||||
@@ -9,7 +9,7 @@ jobs:
|
||||
name: Check for spelling errors
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
- uses: codespell-project/actions-codespell@master
|
||||
with:
|
||||
skip: ca_hashes.txt,tls_data.txt,*.pem,OPENSSL-LICENSE.txt,CREDITS.md,openssl.cnf,testssl.1
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
run: echo "REPO=${GITHUB_REPOSITORY@L}" >> "${GITHUB_ENV}"
|
||||
|
||||
- name: Source checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Setup QEMU
|
||||
id: qemu
|
||||
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
env:
|
||||
LANG: C.UTF-8
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Install shellcheck
|
||||
run: sudo apt update && sudo apt install -y shellcheck && shellcheck --version
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
name: PoC unit test on MacOS
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v6
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Set up system (perl, curl is installed already)
|
||||
run: |
|
||||
@@ -54,6 +54,7 @@ jobs:
|
||||
cpanm --notest Data::Dumper
|
||||
cpanm --notest JSON
|
||||
cpanm --notest Text::Diff
|
||||
cpanm --notest IPC::Run3
|
||||
|
||||
- name: run it
|
||||
run: |
|
||||
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
perl: ['5.38']
|
||||
name: Unit test on ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- name: Set up perl
|
||||
uses: shogo82148/actions-setup-perl@v1
|
||||
@@ -51,6 +51,8 @@ jobs:
|
||||
printf "%s\n" "----------"
|
||||
bash --version
|
||||
printf "%s\n" "----------"
|
||||
echo $PATH
|
||||
printf "%s\n" "----------"
|
||||
|
||||
- name: Install perl modules
|
||||
run: |
|
||||
@@ -58,6 +60,7 @@ jobs:
|
||||
cpanm --notest Data::Dumper
|
||||
cpanm --notest JSON
|
||||
cpanm --notest Text::Diff
|
||||
cpanm --notest IPC::Run3
|
||||
|
||||
- name: run it
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user