Skip to content

Commit

Permalink
make compose-test
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Nov 16, 2024
1 parent 782ccf5 commit 43b36a4
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,34 @@ on:
push:
branches: 'main'
jobs:
containers:
test-node-service:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: docker build podinfo
run: |
docker image build -t podinfo:latest podinfo/content/
- name: docker build node-service
- name: install score-compose
uses: score-spec/setup-score@v3
with:
file: score-compose
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
- name: make compose-test
run: |
docker image build -t node-service:latest node-service/content/
validate-score:
cd node-service
make compose-test
test-podinfo:
runs-on: ubuntu-latest
env:
HUMCTL_VERSION: '*'
steps:
steps:
- name: checkout code
uses: actions/checkout@v4
- uses: humanitec/setup-cli-action@v1
- name: install score-compose
uses: score-spec/setup-score@v3
with:
version: ${{ env.HUMCTL_VERSION }}
- name: humctl score validate - node-service
run: |
humctl score validate --local --strict node-service/content/score.yaml
- name: humctl score validate - podinfo
file: score-compose
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
- name: make compose-test
run: |
humctl score validate --local --strict podinfo/content/score.yaml
cd podinfo
make compose-test

0 comments on commit 43b36a4

Please sign in to comment.