diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0533b3dd3..8e430735b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @spryker/horizon-admin +* @oryx-frontend/core-team diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 8d25aef3e..51530eea0 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,5 +1,5 @@ -closes: +closes: BREAKING CHANGE: diff --git a/.github/workflows/release-from-packages.yml b/.github/workflows/release-from-packages.yml index d65c88e45..c8ccb0f2b 100644 --- a/.github/workflows/release-from-packages.yml +++ b/.github/workflows/release-from-packages.yml @@ -26,7 +26,7 @@ jobs: submodules: recursive - uses: ./.github/actions/release-preparation - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Fix js extension run: node tools/post-build/add-js-extension.js - name: Fix d.ts files diff --git a/.github/workflows/release-labs.yml b/.github/workflows/release-labs.yml deleted file mode 100644 index 48be64e4c..000000000 --- a/.github/workflows/release-labs.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Release labs Workflow - -on: - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -jobs: - release: - runs-on: ubuntu-latest - environment: 'Release NPM' - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - GIT_USER: ${{ vars.GIT_USER }} - GIT_EMAIL: ${{ vars.GIT_EMAIL }} - RELEASE_BRANCH: ${{ github.event.workflow_run.head_branch || github.ref }} - steps: - - uses: actions/setup-node@v3 - with: - node-version: 18 - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - token: ${{ env.GH_TOKEN }} - ref: ${{ env.RELEASE_BRANCH }} - submodules: recursive - - uses: actions/cache@v3 - with: - path: ~/.npm - key: npm-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - npm-node- - - name: Auth NPM - run: | - echo "//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}" > ~/.npmrc - npm whoami - - name: Auth Git - run: | - git config user.email "${{ env.GIT_EMAIL }}" - git config user.name "${{ env.GIT_USER }}" - - name: Install Deps - run: npm ci - - name: Build Labs package - run: npx nx run labs:build - - name: Fix js extension - run: node tools/post-build/add-js-extension.js - - name: Release labs - run: npm run release-labs diff --git a/.github/workflows/release-minor.yml b/.github/workflows/release-minor.yml index 68febbc4c..140e219cd 100644 --- a/.github/workflows/release-minor.yml +++ b/.github/workflows/release-minor.yml @@ -41,7 +41,7 @@ jobs: - name: Install Deps run: npm ci - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Fix js extension run: node tools/post-build/add-js-extension.js - name: Fix d.ts files @@ -54,7 +54,3 @@ jobs: - name: Release Error Log if: failure() run: cat libs/lerna-debug.log - - name: Run b2c stable env update - run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f98cb4ec05454bd6c23b?clear_cache=true - - name: Run b2b stable env update - run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f9b48ca8dd49b432a8c1?clear_cache=true diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index 011f7d819..36d0b4b2f 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -41,7 +41,7 @@ jobs: - name: Install Deps run: npm ci - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Fix js extension run: node tools/post-build/add-js-extension.js - name: Fix d.ts files @@ -54,7 +54,3 @@ jobs: - name: Release Error Log if: failure() run: cat libs/lerna-debug.log - - name: Run b2c stable env update - run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f98cb4ec05454bd6c23b?clear_cache=true - - name: Run b2b stable env update - run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f9b48ca8dd49b432a8c1?clear_cache=true diff --git a/.github/workflows/release-rc.yml b/.github/workflows/release-rc.yml index ed772e151..37bf50f7b 100644 --- a/.github/workflows/release-rc.yml +++ b/.github/workflows/release-rc.yml @@ -41,7 +41,7 @@ jobs: - name: Install Deps run: npm ci - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Fix js extension run: node tools/post-build/add-js-extension.js - name: Fix d.ts files @@ -53,8 +53,6 @@ jobs: run: npm run release-labs - name: Run b2c edge env update run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f9338ca8dd495532b6ee?clear_cache=true - - name: Run b2b edge env update - run: curl -X POST -d {} https://api.netlify.com/build_hooks/64b4f96f29229947990679b0?clear_cache=true - name: Release Error Log if: failure() run: cat libs/lerna-debug.log diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index a8384f68b..265867a31 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -40,7 +40,7 @@ jobs: - name: Install Deps run: npm ci - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Install verdaccio run: npm i -g verdaccio - name: Run verdaccio first time to generate config diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3adca9041..2cbf7a0d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: submodules: recursive - uses: ./.github/actions/release-preparation - name: Build packages - run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,fulfillment,storefront + run: npx nx run-many --target=build --all --parallel=2 --exclude testfront,storybook,storefront - name: Fix js extension run: node tools/post-build/add-js-extension.js - name: Release Next diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aed543d27..55143e7be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -154,7 +154,7 @@ jobs: affectedCmd: npm run sf:e2e:headless:ci:affected isDev: ${{ env.IS_DEV }} - test-storefront-b2c-visual-regression: + test-storefront-visual-regression: runs-on: ubuntu-latest needs: [test-format, test-lint, test-stylelint, test-tsconfig] steps: @@ -176,49 +176,6 @@ jobs: affectedCmd: npm run sf:e2e:headless:ci:visual-regression isDev: ${{ env.IS_DEV }} - test-e2e-storefront-b2b: - runs-on: ubuntu-latest - needs: [test-format, test-lint, test-stylelint, test-tsconfig] - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ env.GITHUB_REF }} - fetch-depth: 0 - - uses: ./.github/actions/init - - name: Storefront E2E Tests for B2B preset - uses: ./.github/actions/run-optimal - env: - SCOS_BASE_URL: ${{ secrets.SCOS_BASE_URL }} - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - STORE: DE - ORYX_FEATURE_VERSION: latest - with: - cmd: npm run sf:b2b:e2e:headless:ci - affectedCmd: npm run sf:b2b:e2e:headless:ci:affected - isDev: ${{ env.IS_DEV }} - - test-e2e-fulfillment: - runs-on: ubuntu-latest - needs: [test-format, test-lint, test-stylelint, test-tsconfig] - steps: - - uses: actions/checkout@v3 - with: - ref: ${{ env.GITHUB_REF }} - fetch-depth: 0 - - uses: ./.github/actions/init - - name: Fulfillment E2E Tests - uses: ./.github/actions/run-optimal - env: - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY_FA }} - ORYX_FULFILLMENT_BACKEND_URL: ${{ secrets.ORYX_FULFILLMENT_BACKEND_URL }} - ORYX_FULFILLMENT_PUBLIC_VAPID_KEY: ${{ secrets.ORYX_FULFILLMENT_PUBLIC_VAPID_KEY }} - ORYX_FULFILLMENT_CLIENT_ID: ${{ secrets.ORYX_FULFILLMENT_CLIENT_ID }} - ORYX_FEATURE_VERSION: latest - with: - cmd: npm run fa:e2e:headless:ci - affectedCmd: npm run fa:e2e:headless:ci:affected - isDev: ${{ env.IS_DEV }} - test-build: runs-on: ubuntu-latest needs: [test-format, test-lint, test-stylelint, test-tsconfig]