diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdb099b2..fd19c79c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,7 +74,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - wizard: [Nuxt-3, Nuct-4, NextJS, Remix, Sveltekit] + wizard: [Nuxt-3, Nuxt-4, NextJS, Remix, Sveltekit] env: SENTRY_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_SENTRY_AUTH_TOKEN }} SENTRY_TEST_ORG: 'sentry-javascript-sdks' @@ -89,4 +89,4 @@ jobs: - name: Install dependencies with yarn run: yarn install --frozen-lockfile - name: Run End-to-End Tests - run: yarn test:e2e ${{ matrix.wizard }} \ No newline at end of file + run: yarn test:e2e ${{ matrix.wizard }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0c8c9fe..a31aac2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,16 +20,22 @@ jobs: runs-on: ubuntu-latest name: 'Release a new version' steps: + - name: Get auth token + id: token + uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 + with: + app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} + private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} - uses: actions/checkout@v2 with: - token: ${{ secrets.GH_RELEASE_PAT }} + token: ${{ steps.token.outputs.token }} fetch-depth: 0 - name: Install Dependencies run: yarn install - name: Prepare release uses: getsentry/action-prepare-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }} + GITHUB_TOKEN: ${{ steps.token.outputs.token }} with: version: ${{ github.event.inputs.version }} force: ${{ github.event.inputs.force }} diff --git a/e2e-tests/test-applications/nuxt-4-test-app b/e2e-tests/test-applications/nuxt-4-test-app deleted file mode 160000 index c949347d..00000000 --- a/e2e-tests/test-applications/nuxt-4-test-app +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c949347d3e2b8c163e5da1ff7d7bdb5d2c5658ce diff --git a/e2e-tests/test-applications/nuxt-4-test-app/.gitignore b/e2e-tests/test-applications/nuxt-4-test-app/.gitignore new file mode 100644 index 00000000..4a7f73a2 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/.gitignore @@ -0,0 +1,24 @@ +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache +dist + +# Node dependencies +node_modules + +# Logs +logs +*.log + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/e2e-tests/test-applications/nuxt-4-test-app/README.md b/e2e-tests/test-applications/nuxt-4-test-app/README.md new file mode 100644 index 00000000..25b58212 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/README.md @@ -0,0 +1,75 @@ +# Nuxt Minimal Starter + +Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. + +## Setup + +Make sure to install dependencies: + +```bash +# npm +npm install + +# pnpm +pnpm install + +# yarn +yarn install + +# bun +bun install +``` + +## Development Server + +Start the development server on `http://localhost:3000`: + +```bash +# npm +npm run dev + +# pnpm +pnpm dev + +# yarn +yarn dev + +# bun +bun run dev +``` + +## Production + +Build the application for production: + +```bash +# npm +npm run build + +# pnpm +pnpm build + +# yarn +yarn build + +# bun +bun run build +``` + +Locally preview production build: + +```bash +# npm +npm run preview + +# pnpm +pnpm preview + +# yarn +yarn preview + +# bun +bun run preview +``` + +Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. diff --git a/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts b/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts new file mode 100644 index 00000000..79a5f6fd --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/nuxt.config.ts @@ -0,0 +1,6 @@ +// https://nuxt.com/docs/api/configuration/nuxt-config +export default defineNuxtConfig({ + compatibilityDate: '2024-11-01', + devtools: { enabled: true }, + future: { compatibilityVersion: 4 }, +}); diff --git a/e2e-tests/test-applications/nuxt-4-test-app/package.json b/e2e-tests/test-applications/nuxt-4-test-app/package.json new file mode 100644 index 00000000..21f13da6 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/package.json @@ -0,0 +1,18 @@ +{ + "name": "nuxt-4-app", + "private": true, + "type": "module", + "scripts": { + "build": "nuxt build", + "dev": "nuxt dev", + "generate": "nuxt generate", + "preview": "nuxt preview", + "postinstall": "nuxt prepare", + "start": "node .output/server/index.mjs" + }, + "dependencies": { + "nuxt": "^3.14.1592", + "vue": "latest", + "vue-router": "latest" + } +} diff --git a/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico b/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico new file mode 100644 index 00000000..18993ad9 Binary files /dev/null and b/e2e-tests/test-applications/nuxt-4-test-app/public/favicon.ico differ diff --git a/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt b/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/public/robots.txt @@ -0,0 +1 @@ + diff --git a/e2e-tests/test-applications/nuxt-4-test-app/server/tsconfig.json b/e2e-tests/test-applications/nuxt-4-test-app/server/tsconfig.json new file mode 100644 index 00000000..b9ed69c1 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/server/tsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "../.nuxt/tsconfig.server.json" +} diff --git a/e2e-tests/test-applications/nuxt-4-test-app/tsconfig.json b/e2e-tests/test-applications/nuxt-4-test-app/tsconfig.json new file mode 100644 index 00000000..a746f2a7 --- /dev/null +++ b/e2e-tests/test-applications/nuxt-4-test-app/tsconfig.json @@ -0,0 +1,4 @@ +{ + // https://nuxt.com/docs/guide/concepts/typescript + "extends": "./.nuxt/tsconfig.json" +}