feat(txn-table): transaction table #47
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: Check | |
on: | |
pull_request: | |
branches: | |
- 'draft' | |
- 'main' | |
types: [opened, synchronize, reopened] | |
env: | |
NODE_VERSION: '22' | |
PNPM_VERSION: '9' | |
jobs: | |
check: | |
name: Run lint and format checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR head | |
uses: actions/checkout@v4 | |
- name: Fetch base commit | |
run: | | |
git fetch origin ${{ github.event.pull_request.base.sha }} --depth=1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- 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: Download package artifacts | |
uses: actions/download-artifact@v3 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run Check | |
# FIXME: Biome's --changed flag didn't correctly detect changed files on Github Actions | |
# run: pnpm exec turbo run check | |
run: | | |
git diff --name-only --diff-filter=d \ | |
${{ github.event.pull_request.base.sha }} ${{ github.sha }} | \ | |
xargs pnpm exec biome check | |
- name: Report Status | |
if: always() | |
uses: actions/github-script@v7 | |
with: | |
script: | | |
const { job, conclusion } = context.payload.workflow_run || {}; | |
if (conclusion === 'failure') { | |
core.setFailed('Lint and format checks failed'); | |
} |