chore(deps): bump next from 13.5.6 to 14.1.1 in /examples/next-js-simple #10622
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
jobs: | |
sdks-base: | |
name: Gen 2 SDKs checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/yarn-nm-install | |
with: | |
cache-node-modules: true | |
cache-install-state: true | |
- name: Run prettier | |
run: yarn workspace @builder.io/sdks ci:lint:sdks | |
- name: Typecheck | |
run: yarn nx typecheck @builder.io/sdks | |
- name: Run tests | |
run: yarn nx test @builder.io/sdks | |
sdks: | |
name: Gen 2 SDKs | |
runs-on: ubuntu-latest | |
strategy: | |
# we still want to run all the SDK tests even if one fails, to get a full picture of the state of the SDKs. | |
fail-fast: false | |
matrix: | |
sdk: ['svelte', 'qwik', 'react-native', 'react', 'nextjs', 'solid', 'vue', 'angular'] | |
include: | |
- sdk: svelte | |
sdk-name: svelte | |
- sdk: qwik | |
sdk-name: qwik | |
- sdk: react-native | |
sdk-name: react-native | |
- sdk: react | |
sdk-name: react | |
- sdk: nextjs | |
sdk-name: react-nextjs | |
- sdk: solid | |
sdk-name: solid | |
- sdk: vue | |
sdk-name: vue | |
- sdk: angular | |
sdk-name: angular | |
steps: | |
- name: Setup | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/yarn-nm-install | |
with: | |
cache-node-modules: true | |
cache-install-state: true | |
- name: Build E2E apps | |
run: yarn workspace @builder.io/sdks e2e:build:${{ matrix.sdk }} | |
- name: Run E2E tests | |
run: yarn workspace @builder.io/sdks e2e:run:${{ matrix.sdk }} | |
- name: Upload Playwright Report | |
uses: actions/upload-artifact@v3 | |
# Only upload the report if the tests failed | |
if: ${{ failure() }} | |
with: | |
name: ${{ matrix.sdk }}-playwright-report | |
path: packages/sdks-tests/playwright-report/ | |
retention-days: 30 | |
gen1-sdk-core: | |
name: Gen 1 SDK Core | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/yarn-nm-install | |
with: | |
cache-node-modules: true | |
cache-install-state: true | |
- name: Build Core | |
run: yarn nx build @builder.io/sdk | |
gen1-react-sdk: | |
name: Gen 1 React SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/yarn-nm-install | |
with: | |
cache-node-modules: true | |
cache-install-state: true | |
- name: Build E2E apps | |
run: yarn workspace @builder.io/packages e2e:build:old-react | |
- name: Run E2E tests | |
run: yarn workspace @builder.io/packages e2e:run:old-react | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use node version 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- run: npm run ci:lint | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
package: ['webcomponents', 'widgets'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use node version 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- uses: actions/cache@v3 | |
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: NPM install | |
run: npm ci --legacy-peer-deps | |
working-directory: packages/${{ matrix.package }} | |
- name: Build | |
run: npm run ci:build --if-present | |
working-directory: packages/${{ matrix.package }} | |
- name: Test | |
run: npm run ci:test --if-present | |
working-directory: packages/${{ matrix.package }} |