Skip to content

Add Webhook Endpoint Validation #8

Add Webhook Endpoint Validation

Add Webhook Endpoint Validation #8

Workflow file for this run

name: Test code
on:
workflow_dispatch:
pull_request:
permissions:
contents: read
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and run linter
uses: docker/build-push-action@v5
with:
context: .
file: .docker/Dockerfile
tags: test-chatbot
outputs: type=docker
- name: Run tests
env:
DOCKER_BUILDKIT: 0
run: |
docker run --rm --memory=1g \
-v ${{ github.workspace }}:/chatbot_server \
-w /chatbot_server \
test-chatbot \
sh -c "pnpm install --frozen-lockfile && pnpm test"