[feat][backend] code evaluator #122
This file contains hidden or 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: CI@frontend - Main | |
on: | |
push: | |
branches: ["main", "release/**"] | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/frontend-ci.yaml' | |
pull_request: | |
branches: ["main", "release/**"] | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/frontend-ci.yaml' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
setup: | |
name: Build All | |
runs-on: ubuntu-latest | |
env: | |
NODE_VERSION: '18' | |
BUILD_BRANCH: ${{ github.ref }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
common/temp/pnpm-local | |
common/temp/pnpm-store | |
common/temp/install-run | |
key: ${{ runner.os }}-rush-store-${{ hashFiles('common/config/subspaces/default/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-rush-store-main | |
${{ runner.os }}-rush-store | |
- name: Changed Files | |
uses: tj-actions/[email protected] | |
with: | |
files: | | |
frontend/** | |
json: true | |
write_output_files: true | |
- name: Install Dependencies | |
run: | | |
node common/scripts/install-run-rush.js install | |
- name: Build All | |
run: | | |
node common/scripts/install-run-rush.js rebuild --verbose --timeline | |
- name: Lint & Style | |
run: | | |
node common/scripts/install-run-rush.js increment --action lint -p .github/outputs/all_changed_files.json | |
node common/scripts/install-run-rush.js increment --action style -p .github/outputs/all_changed_files.json |