From 94370c221824a9f615088901e706216ba6442c67 Mon Sep 17 00:00:00 2001 From: Thorn Walli Date: Mon, 29 Apr 2024 18:28:12 +0200 Subject: [PATCH 1/4] fix(module): fix more missing imports --- .github/workflows/next.yml | 74 +++++++++++++++++++ src/runtime/components/BoosterIframe.vue | 4 +- src/runtime/components/BoosterLayer.vue | 2 +- .../components/BoosterPicture/Source.vue | 2 +- src/runtime/components/BoosterVimeo/Base.vue | 2 +- .../components/BoosterYoutube/Base.vue | 3 +- .../components/WeakHardwareOverlay.vue | 2 + src/runtime/composables/componentObserver.js | 2 +- src/runtime/composables/critical.js | 2 +- src/runtime/composables/fonts.js | 3 +- src/runtime/composables/head.js | 9 ++- 11 files changed, 96 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/next.yml diff --git a/.github/workflows/next.yml b/.github/workflows/next.yml new file mode 100644 index 0000000000..5e1a83a3a4 --- /dev/null +++ b/.github/workflows/next.yml @@ -0,0 +1,74 @@ +name: Next + +on: + push: + branches: + - next + +jobs: + install: + if: "!contains(github.event.head_commit.message, 'skip ci')" + name: Install + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [20] + + steps: + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - name: Checkout Repo + uses: actions/checkout@v4 + - name: cache node_modules + uses: actions/cache@v4 + id: cache + with: + path: | + node_modules + key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }} + + - name: Install Dependencies + if: steps.cache.outputs.cache-hit != 'true' + run: npm ci + + - name: Install Playwright + run: npx playwright install --with-deps + + - name: Lint + run: npm run lint + + - name: Test + run: npm run test + + semantic-version: + name: Semantic Release + needs: install + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + node: [20] + + steps: + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - name: Checkout Repo + uses: actions/checkout@v4 + - name: cache node_modules + uses: actions/cache@v4 + id: cache + with: + path: node_modules + key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }} + - name: Versioning + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + npx -p pinst -p @nuxt/module-builder -p semantic-release -p @semantic-release/git -p @semantic-release/changelog -p @semantic-release/exec -p @semantic-release/github semantic-release --provider=github --debug=true diff --git a/src/runtime/components/BoosterIframe.vue b/src/runtime/components/BoosterIframe.vue index 2a4fc8215f..0ad5e63d23 100644 --- a/src/runtime/components/BoosterIframe.vue +++ b/src/runtime/components/BoosterIframe.vue @@ -10,7 +10,9 @@