37 lines
848 B
YAML
37 lines
848 B
YAML
name: History Rewrite Tests
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'scripts/history-rewrite/**'
|
|
- '.github/workflows/history-rewrite-tests.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'scripts/history-rewrite/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout with full history
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y bats shellcheck
|
|
|
|
- name: Run Bats tests
|
|
run: |
|
|
bats ./scripts/history-rewrite/tests || exit 1
|
|
|
|
- name: ShellCheck scripts
|
|
run: |
|
|
shellcheck scripts/history-rewrite/*.sh || true
|