feat: add OpenAPI schema #344
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: Pull Request | |
on: | |
- pull_request | |
- pull_request_target | |
jobs: | |
test_coverage: | |
name: Test coverage | |
runs-on: ubuntu-latest | |
# Only needs to run on head branch since that will become the new base | |
# and coverage needs to pass before merging | |
if: ${{ github.event_name == 'pull_request' }} | |
strategy: | |
matrix: | |
node-version: | |
- 20.x | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install node.js v${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Run tsc | |
run: npm run prestart | |
- name: Run test coverage | |
run: npm run test:coverage | |
labeler: | |
name: Pull Request labeler | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request_target' }} | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/labeler@v5 | |
with: | |
repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
sync-labels: true |