Split out json repo into just the pre-render package #27
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: Lint and Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7.x.x | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: pnpm | |
- name: pnpm install | |
run: pnpm recursive install --frozen-lockfile | |
if: steps.cache.outputs.cache-hit != 'true' | |
- run: pnpm run tsc | |
- name: pnpm run format | |
run: pnpm recursive run format --no-bail | |
- name: pnpm run api | |
run: pnpm run api | |
- name: pnpm test | |
run: pnpm recursive test --no-bail | |
env: | |
AMAZON_ACCESS_KEY_ID: ${{ secrets.AMAZON_ACCESS_KEY_ID }} | |
AMAZON_SECRET_ACCESS_KEY: ${{ secrets.AMAZON_SECRET_ACCESS_KEY }} | |
- run: pnpm run build | |
test_deno: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: deno lint | |
run: deno lint | |
working-directory: ./packages/edge-functions/ | |
- name: deno test | |
run: deno test | |
working-directory: ./packages/edge-functions/ |