32 lines
895 B
YAML
32 lines
895 B
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: ["**"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
load-config:
|
|
uses: niko/gitea-ci-library/.gitea/workflows/config-provider.yml@feature/pipeline-cleanup
|
|
with:
|
|
config_path: .gitea/workflows/feature-env.conf
|
|
|
|
feature:
|
|
if: github.ref != 'refs/heads/main'
|
|
needs: [load-config]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
bats-image: bats/bats:latest
|
|
cucumber-node-image: node:22
|
|
|
|
main:
|
|
if: github.ref == 'refs/heads/main'
|
|
needs: [load-config]
|
|
uses: niko/gitea-ci-library/.gitea/workflows/build-feature.yml@feature/pipeline-cleanup
|
|
secrets: inherit
|
|
with:
|
|
env_json: ${{ needs.load-config.outputs.env_json }}
|
|
bats-image: bats/bats:latest
|
|
cucumber-node-image: node:22
|