-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.19 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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-22.04
env:
HUMCTL_VERSION: '0.23.1'
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-22.04
env:
SCORE_COMPOSE_VERSION: 'latest'
steps:
- name: checkout code
uses: actions/checkout@v4
- name: install score-compose
uses: score-spec/setup-score@v2
with:
file: score-compose
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ env.SCORE_COMPOSE_VERSION }}
- name: make compose-test
run: |
make compose-test