42 lines
923 B
YAML
42 lines
923 B
YAML
name: History Rewrite Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- development
|
|
- 'feature/**'
|
|
- 'hotfix/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- development
|
|
- 'feature/**'
|
|
- 'hotfix/**'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref_name }}
|
|
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
|