Module

x/alita/workflows/ci.yml

A React framework based on umi.
Go to Latest
File
name: Node CI
env: NODE_OPTIONS: --max-old-space-size=6144
on: push: paths-ignore: - 'examples/**' - 'docs/**' - '**/*.md'
jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: node_version: [14.x, 16.x] os: [ubuntu-latest, macos-latest, windows-latest] fail-fast: false steps: - uses: actions/checkout@v2 with: fetch-depth: 0 - name: Use Node.js ${{ matrix.node_version }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node_version }} registry-url: 'https://registry.npmjs.org/' - name: Cache .pnpm-store id: cache uses: actions/cache@v1 with: path: ~/.pnpm-store key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} - name: Install pnpm run: curl -f https://get.pnpm.io/v6.7.js | node - add --global pnpm@6 - name: install run: pnpm install - run: pnpm build - run: pnpm tsc --noEmit - run: pnpm test env: CI: true NODE_ENV: test