Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
name: Setup groff
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 5
permissions:
contents: read
strategy:
fail-fast: false
matrix:
Expand All @@ -32,11 +34,15 @@ jobs:
os: ["macos"]
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
persist-credentials: "false"
- name: Setup groff
id: setup-groff
uses: ./
- name: Test action completion
env:
STEP_SETUP_GROFF_OUTPUT_INSTALLED: "${{ steps.setup-groff.outputs.installed }}"
run: |
test_equal() {
if [ "${2}" != "${3}" ]; then
Expand All @@ -45,7 +51,7 @@ jobs:
fi
}
test_equal "groff should be installed" \
"${{ steps.setup-groff.outputs.installed }}" \
"${STEP_SETUP_GROFF_OUTPUT_INSTALLED}" \
"true"
- name: Run script
run: groff -man -Tascii ./hello-world.roff
Expand All @@ -54,15 +60,21 @@ jobs:
name: Setup groff in container (ubuntu)
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
container:
image: ubuntu:25.04
image: ubuntu:26.10
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
persist-credentials: "false"
- name: Setup groff
id: setup-groff
uses: ./
- name: Test action completion
env:
STEP_SETUP_GROFF_OUTPUT_INSTALLED: "${{ steps.setup-groff.outputs.installed }}"
run: |
test_equal() {
if [ "${2}" != "${3}" ]; then
Expand All @@ -71,7 +83,7 @@ jobs:
fi
}
test_equal "groff should be installed" \
"${{ steps.setup-groff.outputs.installed }}" \
"${STEP_SETUP_GROFF_OUTPUT_INSTALLED}" \
"true"
- name: Run script
run: groff -man -Tascii ./hello-world.roff
Expand All @@ -80,13 +92,17 @@ jobs:
name: Test force
runs-on: macos-latest
timeout-minutes: 5
permissions:
contents: read
strategy:
fail-fast: false
matrix:
force: ["true", "false"]
steps:
- name: Checkout ${{ github.repository }}
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
persist-credentials: "false"
- name: Setup groff 1
id: setup-groff-1
uses: ./
Expand All @@ -96,6 +112,9 @@ jobs:
with:
force: ${{ matrix.force }}
- name: Test action completion
env:
STEP_SETUP_GROFF_1_OUTPUT_INSTALLED: "${{ steps.setup-groff-1.outputs.installed }}"
STEP_SETUP_GROFF_2_OUTPUT_INSTALLED: "${{ steps.setup-groff-2.outputs.installed }}"
run: |
test_equal() {
if [ "${2}" != "${3}" ]; then
Expand All @@ -104,8 +123,8 @@ jobs:
fi
}
test_equal "Wrong \"installed\" output from setup-groff-1" \
"${{ steps.setup-groff-1.outputs.installed }}" \
"${STEP_SETUP_GROFF_1_OUTPUT_INSTALLED}" \
"true"
test_equal "Wrong \"installed\" output from setup-groff-2" \
"${{ steps.setup-groff-2.outputs.installed }}" \
"${STEP_SETUP_GROFF_2_OUTPUT_INSTALLED}" \
"${{ matrix.force }}"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
hooks:
- id: detect-secrets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
rev: v8.30.1
hooks:
- id: gitleaks
# Markdown
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
- uses: fabasoad/setup-groff-action@v0
- run: groff -man -Tascii hello.roff
```
Expand Down
Loading