Skip to content

repo-sync-2024-03-20T10:43:05+0800 #5

repo-sync-2024-03-20T10:43:05+0800

repo-sync-2024-03-20T10:43:05+0800 #5

Workflow file for this run

name: "Code: CI"
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
push:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: ^8.8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install deps
run: pnpm install --ignore-scripts
- uses: nrwl/nx-set-shas@v3
# https://nx.dev/recipes/ci/monorepo-ci-github-actions
- name: Run linters and tests
run: pnpm run ci