diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index cd6216d2..e40b9e25 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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