Bump alpine:3.19.1
, "pg": "^8.11.3"
and [email protected]
#7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run-tests-on-pr | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
pull_request: | |
env: | |
SCORE_COMPOSE_VERSION: 'latest' | |
SCORE_HELM_VERSION: 'latest' | |
WORKLOAD_NAME: hello-world | |
jobs: | |
job: | |
runs-on: ubuntu-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 score-compose | |
run: | | |
make score-compose | |
- name: make compose-up | |
run: | | |
make compose-up | |
- name: make compose-test | |
run: | | |
sleep 10 | |
make compose-test | |
- name: create kind cluster | |
run: | | |
kind create cluster | |
- name: install score-helm | |
uses: score-spec/setup-score@v2 | |
with: | |
file: score-helm | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: ${{ env.SCORE_HELM_VERSION }} | |
- name: make score-helm | |
run: | | |
make score-helm | |
- name: make k8s-up | |
id: helm-install | |
run: | | |
make k8s-up | |
kubectl wait \ | |
--for=condition=available \ | |
--timeout=30s \ | |
deployment/${{ env.WORKLOAD_NAME }} | |
- name: catch helm install errors | |
if: ${{ failure() && steps.helm-install.outcome == 'failure' }} | |
run: | | |
kubectl get events | |
kubectl logs \ | |
-l app.kubernetes.io/name=${{ env.WORKLOAD_NAME }} |