ffc0734b65
CI Main / Check existing artifact (push) Successful in 12s
unit-tests Link to Bats reports
CI Main / Bats tests (push) Successful in 1m44s
acc-tests Link to Cucumber reports
CI Main / Cucumber tests (push) Successful in 1m31s
CI Main / Build & Push Docker (push) Successful in 54s
CI Main / Report Summary (push) Successful in 13s
CI Main / Move provider version tag (push) Successful in 13s
CI Main / Load example-gitea-env.conf to pipeline env (push) Successful in 19s
ci-docker-build-push Docker build & push 0.2.2 OK
Co-authored-by: moilanik <niko.moilanen@tietoevry.com> Reviewed-on: #13
69 lines
2.0 KiB
YAML
69 lines
2.0 KiB
YAML
name: CI Main
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
load-config:
|
|
name: Load example-gitea-env.conf to pipeline env
|
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@main
|
|
secrets: inherit
|
|
with:
|
|
config_path: .gitea/workflows/example-gitea-env.conf
|
|
|
|
check-version:
|
|
name: Check existing artifact
|
|
needs: [load-config]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/check-version.yml@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
|
|
bats:
|
|
name: Bats tests
|
|
needs: [load-config, check-version]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-bats-tests.yml@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
bats-image: bats/bats:latest
|
|
|
|
cucumber:
|
|
name: Cucumber tests
|
|
needs: [load-config, check-version]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-cucumber-tests.yml@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
cucumber-node-image: node:22
|
|
|
|
build-push:
|
|
name: Build & Push Docker
|
|
needs: [load-config, check-version, bats, cucumber]
|
|
if: needs.check-version.outputs.artifact_exists != 'true'
|
|
uses: niko/gitea-ci-library/.gitea/workflows/docker-build-push.yml@main
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
version: ${{ needs.check-version.outputs.version }}
|
|
|
|
report-summary:
|
|
name: Report Summary
|
|
needs: [load-config, build-push]
|
|
if: always()
|
|
uses: niko/gitea-ci-library/.gitea/workflows/example-report-summary.yml@main
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
suites: bats cucumber
|
|
|
|
tag-maintenance:
|
|
name: Move provider version tag
|
|
needs: [build-push]
|
|
if: success()
|
|
uses: niko/gitea-ci-library/.gitea/workflows/tag-maintenance.yml@main
|
|
secrets: inherit
|