Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- packages/keryx/package.json
- packages/plugins/tracing/package.json
- packages/plugins/resque-admin/package.json
- packages/plugins/csrf/package.json

jobs:
publish:
Expand All @@ -26,6 +27,9 @@ jobs:
- package: resque-admin
dir: packages/plugins/resque-admin
npm_name: "@keryxjs/resque-admin"
- package: csrf
dir: packages/plugins/csrf
npm_name: "@keryxjs/csrf"
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
Expand Down
34 changes: 33 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,38 @@ jobs:
env:
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/keryx-test

test-plugin-csrf:
runs-on: ubuntu-latest

services:
redis:
image: redis
ports:
- 6379:6379
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: keryx-test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: cp packages/keryx/.env.example packages/keryx/.env
- run: cp packages/plugins/csrf/.env.example packages/plugins/csrf/.env
- name: Run csrf tests
run: cd packages/plugins/csrf && bun test
env:
DATABASE_URL_TEST: postgres://postgres:postgres@localhost:5432/keryx-test

test-example-frontend:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -241,7 +273,7 @@ jobs:
complete:
runs-on: ubuntu-latest
if: always()
needs: [compile, lint, test-package, test-plugin-tracing, test-plugin-resque-admin, test-example-backend, test-example-frontend, test-docs, benchmark, docker-build-backend, docker-build-frontend]
needs: [compile, lint, test-package, test-plugin-tracing, test-plugin-resque-admin, test-plugin-csrf, test-example-backend, test-example-frontend, test-docs, benchmark, docker-build-backend, docker-build-frontend]
steps:
- run: |
if [[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/csrf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@keryxjs/csrf",
"version": "0.1.1",
"version": "0.1.2",
"module": "index.ts",
"type": "module",
"license": "MIT",
Expand Down
Loading