fix
This commit is contained in:
@@ -29,6 +29,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run bats tests
|
- name: Run bats tests
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
|
mkdir -p "reports/${GITHUB_SHA:0:8}/bats"
|
||||||
docker run --rm -v "$PWD:/code" ${{ inputs.bats-image }} /code/tests/*.bats > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 || true
|
docker run --rm -v "$PWD:/code" ${{ inputs.bats-image }} /code/tests/*.bats > "reports/${GITHUB_SHA:0:8}/bats/results.txt" 2>&1 || true
|
||||||
@@ -37,10 +38,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Publish bats reports
|
- name: Publish bats reports
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/bats"
|
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/bats"
|
||||||
|
|
||||||
- name: Set bats commit status
|
- name: Set bats commit status
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/report-status.sh success \
|
bash .ci/scripts/report-status.sh success \
|
||||||
"Bats tests" \
|
"Bats tests" \
|
||||||
@@ -66,6 +69,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Run cucumber tests
|
- name: Run cucumber tests
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
|
mkdir -p "reports/${GITHUB_SHA:0:8}/cucumber"
|
||||||
npx cucumber-js \
|
npx cucumber-js \
|
||||||
@@ -75,10 +79,12 @@ jobs:
|
|||||||
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json"
|
--format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json"
|
||||||
|
|
||||||
- name: Publish cucumber reports
|
- name: Publish cucumber reports
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber"
|
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber"
|
||||||
|
|
||||||
- name: Set cucumber commit status
|
- name: Set cucumber commit status
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/report-status.sh success \
|
bash .ci/scripts/report-status.sh success \
|
||||||
"Cucumber tests" \
|
"Cucumber tests" \
|
||||||
@@ -102,6 +108,7 @@ jobs:
|
|||||||
path: .ci
|
path: .ci
|
||||||
|
|
||||||
- name: Generate report index
|
- name: Generate report index
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
SHA8="${GITHUB_SHA:0:8}"
|
SHA8="${GITHUB_SHA:0:8}"
|
||||||
mkdir -p "reports/${SHA8}"
|
mkdir -p "reports/${SHA8}"
|
||||||
@@ -128,6 +135,7 @@ jobs:
|
|||||||
} > "reports/${SHA8}/index.html"
|
} > "reports/${SHA8}/index.html"
|
||||||
|
|
||||||
- name: Publish report index
|
- name: Publish report index
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}"
|
bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user