Update lambda/webhookHandler.ts #184
Workflow file for this run
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 and Release | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-22.04 | |
| if: github.ref == 'refs/heads/saga' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| - name: Keep npm cache around to speed up installs | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.npm | |
| key: build-${{ hashFiles('**/package-lock.json') }} | |
| - name: Install dependencies | |
| run: npm ci --no-audit | |
| - name: Check source code with eslint | |
| run: npx eslint . | |
| - name: Format source code with prettier | |
| run: npx prettier -c ./ | |
| - name: Run unit tests | |
| run: npm test | |
| - name: Semantic release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx semantic-release |