fix: do not register received event if the prompt was already seen. #104
Workflow file for this run
This file contains 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: Typescript CI | |
on: [push] | |
permissions: | |
statuses: write | |
checks: write | |
contents: read | |
jobs: | |
build-and-test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "yarn" | |
cache-dependency-path: "**/yarn.lock" | |
- name: Restore Node.js dependencies | |
run: yarn install --frozen-lockfile | |
- id: build | |
name: Build the project | |
run: yarn build | |
- id: test | |
name: Test the project | |
run: yarn test:ci | |
- name: Report test results | |
uses: dorny/test-reporter@v1.6.0 | |
if: ${{ steps.build.conclusion == 'success' }} | |
with: | |
name: Build & Test Report | |
path: ./junit.xml | |
reporter: jest-junit | |
- id: prettier | |
if: ${{ steps.test.conclusion == 'success' }} | |
name: Check styling | |
run: yarn prettier | |
- id: lint | |
if: ${{ steps.prettier.conclusion == 'success' }} | |
name: Check for linting errors | |
run: yarn lint:ci | |
- name: Annotate from ESLint report | |
if: ${{ steps.prettier.conclusion == 'success' }} | |
uses: ataylorme/eslint-annotate-action@v2 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
report-json: "eslint-report.json" | |
fail-on-warning: true |