2020-01-27 21:07:31 +01:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# * is a special character in YAML so you have to quote this string
|
|
|
|
- cron: '0 0,12 * * *'
|
|
|
|
|
|
|
|
name: Test react@next
|
|
|
|
|
|
|
|
jobs:
|
2020-01-30 06:14:50 +01:00
|
|
|
# build:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - uses: actions/checkout@v2
|
2020-01-27 21:07:31 +01:00
|
|
|
|
2020-01-30 06:14:50 +01:00
|
|
|
# - run: yarn install --frozen-lockfile --check-files
|
|
|
|
# env:
|
|
|
|
# NEXT_TELEMETRY_DISABLED: 1
|
2020-01-27 21:07:31 +01:00
|
|
|
|
2020-01-30 06:14:50 +01:00
|
|
|
# - run: yarn upgrade react@next react-dom@next -W --dev
|
2020-01-27 21:07:31 +01:00
|
|
|
|
2020-07-23 06:06:50 +02:00
|
|
|
# - uses: actions/cache@v2
|
2020-01-30 06:14:50 +01:00
|
|
|
# id: cache-build
|
|
|
|
# with:
|
2020-07-23 06:06:50 +02:00
|
|
|
# path: ./*
|
2020-01-30 06:14:50 +01:00
|
|
|
# key: ${{ github.sha }}
|
2020-01-27 21:07:31 +01:00
|
|
|
|
|
|
|
testAll:
|
|
|
|
name: Test All
|
|
|
|
runs-on: ubuntu-latest
|
2020-01-30 06:14:50 +01:00
|
|
|
# needs: build
|
|
|
|
env:
|
|
|
|
NEXT_TELEMETRY_DISABLED: 1
|
|
|
|
HEADLESS: true
|
2021-04-13 19:16:45 +02:00
|
|
|
NEXT_PRIVATE_SKIP_SIZE_TESTS: true
|
2021-06-14 21:40:15 +02:00
|
|
|
NEXT_PRIVATE_REACT_ROOT: 1
|
2020-01-27 21:07:31 +01:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
group: [1, 2, 3, 4, 5, 6]
|
|
|
|
steps:
|
2020-07-23 06:06:50 +02:00
|
|
|
# - uses: actions/cache@v2
|
2020-01-30 06:14:50 +01:00
|
|
|
# id: restore-build
|
|
|
|
# with:
|
2020-07-23 06:06:50 +02:00
|
|
|
# path: ./*
|
2020-01-30 06:14:50 +01:00
|
|
|
# key: ${{ github.sha }}
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- run: yarn install --frozen-lockfile --check-files
|
|
|
|
|
|
|
|
- run: yarn upgrade react@next react-dom@next -W --dev
|
2020-01-27 21:07:31 +01:00
|
|
|
|
2020-02-01 01:57:58 +01:00
|
|
|
# TODO: remove after we fix watchpack watching too much
|
|
|
|
- run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
|
|
|
|
|
2020-01-29 17:39:15 +01:00
|
|
|
- run: node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3
|