Add tests to action
All checks were successful
ci / build-image (push) Successful in 59s
ci / test-image (push) Successful in 8s

This commit is contained in:
Jonathan Cremin 2025-06-12 18:18:57 +01:00
parent 91d9af097d
commit 4dfd6e93b2
8 changed files with 139 additions and 48 deletions

View file

@ -39,3 +39,15 @@ jobs:
password: ${{ secrets.FORGEJO_REGISTRY_TOKEN }}
image: combinefm
tags: latest ${{ github.sha }}
test-image:
runs-on: self-hosted
steps:
- name: Check out repository
uses: https://cremin.dev/actions/checkout@v4
- name: Test image
env:
YOUTUBE_KEY: ${{ secrets.YOUTUBE_KEY }}
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
run: |
podman run --rm --env-host -it cremin.dev/jonathan/combinefm:${{ github.sha }} yarn test