public-api: remove cors limit for public api #416
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: Verify API server | |
on: | |
pull_request: | |
paths: | |
- 'packages/api-server/**' | |
defaults: | |
run: | |
shell: bash | |
working-directory: packages/api-server | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: v18.12.0 | |
- uses: pnpm/[email protected] | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: 8.6.0 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install OSSInsight Types Dependencies | |
run: pnpm --filter "@ossinsight/types" install && pnpm --filter "@ossinsight/types" build | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile --strict-peer-dependencies | |
- name: Verify Sources | |
run: pnpm run test | |
- name: Build Project | |
run: pnpm run build:ts |