Skip to content

Feat/rpc public client #5

Feat/rpc public client

Feat/rpc public client #5

Workflow file for this run

name: Checks
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches:
- master
permissions:
pull-requests: write
concurrency:
# Support push/pr as event types with different behaviors each:
# 1. push: queue up builds
# 2. pr: only allow one run per PR
group: ${{ github.workflow }}-${{ github.event.type }}${{ github.event.pull_request.number }}
# If there is already a workflow running for the same pull request, cancel it
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
code_style:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
strategy:
matrix:
style-command:
- lint
- prettier
- typecheck
steps:
- name: checkout
uses: actions/checkout@v3
- name: Enable Corepack
run: corepack enable
- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
- name: install
run: yarn install --immutable
- name: build
run: yarn build
- name: check
run: yarn ${{ matrix.style-command }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
continue-on-error: true
permissions:
contents: write
pull-requests: write
steps:
- name: checkout
uses: actions/checkout@v3
- name: Enable Corepack
run: corepack enable
- name: setup-node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
- name: install
run: yarn install
- name: build
run: yarn build
- name: Test
run: yarn test
- name: Merge Coverage Reports
if: always()
run: yarn coverage:merge
- name: Report
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
name: Coverage
json-final-path: ./coverage/coverage-merged-final.json
json-summary-path: ./coverage/coverage-merged-summary.json