Skip to content

ci: add lint and secret-scan caller workflows #867

ci: add lint and secret-scan caller workflows

ci: add lint and secret-scan caller workflows #867

Workflow file for this run

---
name: CI - Bats Tests
"on":
push:
branches:
- main
paths-ignore:
- "*.md"
pull_request:
paths-ignore:
- "*.md"
workflow_dispatch:
concurrency:
group: >-
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
checks: write
jobs:
test:
name: Run Bats Tests
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.14.3"
- name: Install Python dependencies
run: |
pip install -r requirements.txt
- name: Run Bats tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x tests/bash/run-tests.sh
./tests/bash/run-tests.sh --ci
- name: Publish test results
uses: mikepenz/action-junit-report@6ef3fdcfcd5f0b5d14df3e659ef19b8c6820f93d # v6.6.1
if: always()
with:
report_paths: "tests/bash/test-results.xml"
check_name: Bats Test Results
detailed_summary: true
include_passed: true
- name: Upload test results artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: always()
with:
name: test-results
path: tests/bash/test-results.xml
retention-days: 30