mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 15:04:31 +00:00
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims - Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers - Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them - Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring - Document the new layout in docs/layout.md Co-authored-by: Junie <junie@jetbrains.com>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
version: 2
|
|
jobs:
|
|
lint:
|
|
docker:
|
|
- image: koalaman/shellcheck-alpine:v0.7.1
|
|
steps:
|
|
- checkout
|
|
- run: shellcheck shellspec $(find lib libexec spec examples -name '*.sh')
|
|
test:
|
|
working_directory: ~/shellspec
|
|
docker:
|
|
- image: alpine
|
|
steps:
|
|
- run: apk add --no-progress --no-cache ca-certificates
|
|
- checkout
|
|
- run: ./shellspec --task fixture:stat:prepare
|
|
- run: ./shellspec -o tap -o junit
|
|
- run:
|
|
command: |
|
|
mkdir -p ~/report/shellspec
|
|
cp report/results_junit.xml ~/report/shellspec/
|
|
when: always
|
|
- store_test_results:
|
|
path: ~/report
|
|
- store_artifacts:
|
|
path: report
|
|
coverage:
|
|
working_directory: ~/shellspec
|
|
docker:
|
|
- image: shellspec/kcov
|
|
steps:
|
|
- checkout
|
|
- run: ./shellspec --task fixture:stat:prepare
|
|
- run: ./shellspec --kcov
|
|
- store_artifacts:
|
|
path: coverage
|
|
workflows:
|
|
version: 2
|
|
lint_test_and_coverage:
|
|
jobs:
|
|
- lint
|
|
- test
|
|
- coverage:
|
|
requires:
|
|
- lint
|
|
- test
|
|
daily_update_schedule:
|
|
jobs:
|
|
- lint
|
|
- coverage:
|
|
requires:
|
|
- lint
|
|
triggers:
|
|
- schedule:
|
|
cron: "0 0 * * *"
|
|
filters:
|
|
branches:
|
|
only:
|
|
- master
|