Skip to content

BO45 - create a DAL utility to get data without pagination #357

BO45 - create a DAL utility to get data without pagination

BO45 - create a DAL utility to get data without pagination #357

Workflow file for this run

name: "Test"
on:
pull_request_target:
branches: [main]
jobs:
authorize:
environment:
${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository && 'external' || 'internal' }}
runs-on: ubuntu-latest
steps:
- run: true
test:
needs: authorize
runs-on: ubuntu-latest
env:
PUBLIC_FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
PUBLIC_FIREBASE_SERVICE_ACCOUNT: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
PUBLIC_FIREBASE_STORAGE_BUCKET: ${{secrets.FIREBASE_STORAGE_BUCKET}}
permissions:
contents: write
steps:
- uses: actions/github-script@v7
id: pr
with:
script: |
const { data: pullRequest } = await github.rest.pulls.get({
...context.repo,
pull_number: context.payload.pull_request.number,
});
return pullRequest
- uses: actions/checkout@v4
with:
ref: ${{fromJSON(steps.pr.outputs.result).merge_commit_sha}}
- name: Cache firebase emulators
uses: actions/cache@v4
with:
path: ~/.cache/firebase/emulators
key: ${{ runner.os }}-firebase-emulators-${{ github.sha }}
restore-keys: |
${{ runner.os }}-firebase-emulators-
- uses: pnpm/action-setup@v3
with:
version: 9
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: "pnpm"
- name: "Install Dependencies"
run: pnpm i --frozen-lockfile
- name: "Install Firebase"
run: pnpm install -g firebase-tools
- name: "Test"
run: pnpm run test
- name: "Upload Coverage"
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage