56031a03b8
CI Feature / Load example-gitea-env.conf to pipeline env (push) Successful in 16s
acc-tests Link to Cucumber reports
CI Feature / Cucumber tests (push) Successful in 30s
unit-tests Link to Bats reports
CI Feature / Bats tests (push) Failing after 22s
CI Feature / Report Summary (push) Successful in 5s
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Cucumber Tests
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
env_json:
|
|
required: true
|
|
type: string
|
|
cucumber-node-image:
|
|
required: false
|
|
type: string
|
|
default: gitea.app.keskikuja.site/niko/ci-cucumber:latest
|
|
secrets:
|
|
GITEA_TOKEN:
|
|
required: true
|
|
GIT_PAGES_PUBLISH_TOKEN:
|
|
required: true
|
|
|
|
env:
|
|
GITEA_API_URL: ${{ fromJson(inputs.env_json).GITEA_API_URL }}
|
|
GIT_PAGES_URL: ${{ fromJson(inputs.env_json).GIT_PAGES_URL }}
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GIT_PAGES_PUBLISH_TOKEN: ${{ secrets.GIT_PAGES_PUBLISH_TOKEN }}
|
|
|
|
jobs:
|
|
cucumber:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ${{ inputs.cucumber-node-image }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
repository: niko/gitea-ci-library
|
|
path: .ci
|
|
|
|
- name: Run cucumber tests
|
|
shell: bash
|
|
run: |
|
|
mkdir -p reports/cucumber
|
|
npx cucumber-js \
|
|
--format json:reports/cucumber/report.json \
|
|
--format html:reports/cucumber/report.html 2>&1
|
|
|
|
- name: Report
|
|
if: always()
|
|
shell: bash
|
|
run: bash .ci/scripts/ci-report.sh "Cucumber test report" acc-tests cucumber
|