Skip to content

Makefile: regenerate compose.yaml when state file has changed #55

Makefile: regenerate compose.yaml when state file has changed

Makefile: regenerate compose.yaml when state file has changed #55

Workflow file for this run

name: ci
permissions:
contents: read
id-token: write
on:
push:
jobs:
score-validate:
strategy:
matrix:
apps: ["order", "product", "store-front", "makeline", "store-admin"]
runs-on: ubuntu-24.04
env:
HUMCTL_VERSION: '*'
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install humctl
uses: humanitec/setup-cli-action@v1
with:
version: ${{ env.HUMCTL_VERSION }}
- name: humctl score validate
run: |
humctl score validate apps/${{ matrix.apps }}/score.yaml \
--token ${{ secrets.HUMANITEC_TOKEN }} \
--org ${{ secrets.HUMANITEC_ORG }} \
--strict
score-compose:
runs-on: ubuntu-24.04
env:
SCORE_COMPOSE_VERSION: 'latest'
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install score-compose
uses: score-spec/setup-score@v3
with:
file: score-compose
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.SCORE_COMPOSE_VERSION }}
- name: make compose-test
run: |
make compose-test
score-k8s:
runs-on: ubuntu-24.04
env:
SCORE_K8S_VERSION: 'latest'
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install score-k8s
uses: score-spec/setup-score@v3
with:
file: score-k8s
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.SCORE_K8S_VERSION }}
- name: make kind-create-cluster
run: |
make kind-create-cluster
- name: make k8s-up
id: k8s-up
run: |
make k8s-up
- name: catch k8s-up errors
if: ${{ failure() && steps.k8s-up.outcome == 'failure' }}
run: |
kubectl get events
kubectl logs \
-l app.kubernetes.io/name=store-admin