Add Webhook Endpoint Validation #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |