Add test job to Docker publish workflow

This commit is contained in:
Fatih Kadir Akın
2026-01-08 13:10:26 +03:00
committed by GitHub
parent 9c2382bc53
commit 29eb0b95ba

View File

@@ -13,8 +13,27 @@ env:
IMAGE_NAME: ${{ github.repository_owner }}/prompts.chat
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
build-and-push:
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write