mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Can't recall why we added this, but it shouldn't be necessary and should shave off ~2 mins from ci
27 lines
640 B
YAML
27 lines
640 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
forget:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.x
|
|
cache: "yarn"
|
|
cache-dependency-path: forget/yarn.lock
|
|
- name: cache node_modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: "**/node_modules"
|
|
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
- run: yarn install --frozen-lockfile
|
|
working-directory: forget
|
|
- run: yarn test
|
|
working-directory: forget
|