fiks: core tim 2 (#51) #27
This file contains 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: Upgrade Compability Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
canary: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20] | |
name: Upgrade to NODE ${{matrix.node}} in NEXT canary | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node ${{matrix.node}} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies on NODE ${{matrix.node}} in NEXT canary | |
run: npm install --frozen-lockfile | |
- name: Upgrade to CANARY version | |
run: npm install next@canary | |
- name: Run tests on NODE ${{matrix.node}} in NEXT canary | |
run: npm test | |
- name: Run build on NODE ${{matrix.node}} in NEXT canary | |
run: npm run build | |
- name: Print package versions | |
run: npm list --depth=0 | |
latest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [18, 20] | |
name: Upgrade to NODE ${{matrix.node}} in NEXT latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node ${{matrix.node}} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies on NODE ${{matrix.node}} in NEXT latest | |
run: npm install --frozen-lockfile | |
- name: Upgrade to LATEST version | |
run: npm install next@latest react@latest react-dom@latest eslint-config-next@latest | |
- name: Run tests on NODE ${{matrix.node}} in NEXT latest | |
run: npm test | |
- name: Run build on NODE ${{matrix.node}} in NEXT latest | |
run: npm run build | |
- name: Print package versions | |
run: npm list --depth=0 |