bats moun non read only
This commit is contained in:
@@ -11,6 +11,7 @@ jobs:
|
||||
config_path: .gitea/workflows/gitea-env.conf
|
||||
|
||||
feature:
|
||||
name: Quality Gate
|
||||
if: github.ref != 'refs/heads/main'
|
||||
needs: [load-config]
|
||||
uses: niko/gitea-ci-library/.gitea/workflows/quality-gate.yml@feture/docker-kyky
|
||||
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
set +e
|
||||
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
|
||||
docker run --rm \
|
||||
-v "$(pwd):/repo:ro" \
|
||||
-v "$(pwd):/repo" \
|
||||
-v "$(pwd)/reports/${GITHUB_SHA:0:8}/bats:/reports" \
|
||||
-w /repo \
|
||||
--entrypoint bash ${{ inputs.bats-image }} \
|
||||
@@ -95,17 +95,7 @@ jobs:
|
||||
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \
|
||||
--format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1
|
||||
CUCUMBER_EXIT=$?
|
||||
echo "CUCUMBER_EXIT=${CUCUMBER_EXIT}" >> "${GITHUB_ENV}"
|
||||
exit ${CUCUMBER_EXIT}
|
||||
|
||||
- name: Publish cucumber reports
|
||||
if: always()
|
||||
run: bash .ci/scripts/publish-git-pages.sh cucumber
|
||||
|
||||
- name: Set cucumber commit status
|
||||
if: always()
|
||||
shell: bash
|
||||
run: |
|
||||
STATE="success"
|
||||
[ "${CUCUMBER_EXIT}" != "0" ] && STATE="failure"
|
||||
if [ -f "reports/${GITHUB_SHA:0:8}/cucumber/index.html" ]; then
|
||||
@@ -114,6 +104,12 @@ jobs:
|
||||
bash .ci/scripts/report-status.sh "${STATE}" "Cucumber tests" ci-cucumber
|
||||
fi
|
||||
|
||||
exit ${CUCUMBER_EXIT}
|
||||
|
||||
- name: Publish cucumber reports
|
||||
if: always()
|
||||
run: bash .ci/scripts/publish-git-pages.sh cucumber
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [bats, cucumber]
|
||||
|
||||
Reference in New Issue
Block a user