Skip to content

PR for testing the test workflow #8

PR for testing the test workflow

PR for testing the test workflow #8

Workflow file for this run

name: Test Workflow
on:
# push:
# branches: [main]
pull_request:
branches: [test-workflow]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 10
- name: Use Node.js
uses: actions/setup-node@v5
with:
node-version: 24.14.0
cache: 'pnpm'
- name: Install Dependencies
run: pnpm i
- name: Generate SvelteKit config
run: pnpm svelte-kit sync
- name: Update and Test database
env:
DB_URL: file:database/local.db
DB_VISITS_URL: file:database/visits.db
run: pnpm db:update
comment-on-failure:
needs: test
if: ${{ failure() && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: peter-evans/create-or-update-comment@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Automated testing for this pull request has failed. Please examine the run logs to identify the root cause of the error. Additional information regarding these tests can be found in the [contribution guidelines](https://github.com/ScriptRaccoon/CatDat/blob/main/CONTRIBUTING.md).