task definitions in workflow query fix #7800
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: PR check | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
pr-check: | |
runs-on: ubuntu-latest | |
container: node:19.7.0-alpine | |
env: | |
PRIVATE_GH_TOKEN: ${{ secrets.PACKAGE_TOKEN }} | |
PRIVATE_NPM_TOKEN: ${{ secrets.PUBLISH_TOKEN }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v3 | |
- name: Use CI yarnrc | |
run: cp .yarnrc.ci.yml .yarnrc.yml | |
- name: Copy yarn.lock file | |
run: cp yarn.lock yarn.lock.orig | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Check code formatting | |
run: yarn run formatter:check | |
- name: Build dependencies | |
run: yarn run build:api | |
- name: Run PR check | |
run: yarn run pr |