diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml deleted file mode 100644 index 1862e6758..000000000 --- a/.github/workflows/autofix.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: autofix.ci # needed to securely identify the workflow - -on: - pull_request: - -permissions: - contents: read - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: ${{ github.event_name != 'push' }} - -jobs: - code: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: "pnpm" - - - name: Install dependencies - run: pnpm install - - - name: Dedupe dependencies - if: ${{ contains(github.head_ref, 'renovate') }} - run: pnpm dedupe - - - name: Update bundle size - run: pnpm vitest run bundle -u - - - uses: autofix-ci/action@bee19d72e71787c12ca0f29de72f2833e437e4c9 - with: - commit-message: 'chore: apply automated fixes' diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml deleted file mode 100644 index 71fe3c9e5..000000000 --- a/.github/workflows/e2e.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: e2e - -on: - workflow_dispatch: - inputs: - url: - required: false - description: The URL to run the test suite against. If omitted, it runs against all. - type: string - deployment_status: - -concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - cancel-in-progress: true - -jobs: - playwright: - environment: - name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - container: - image: mcr.microsoft.com/playwright:v1.39.0-focal - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - run: pnpm test:e2e - env: - BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - - lighthouse: - environment: - name: ${{ github.event.deployment.environment || 'Production' }} - url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: curl ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - - name: Audit URLs using Lighthouse - uses: treosh/lighthouse-ci-action@v10 - with: - urls: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }} - uploadArtifacts: true - temporaryPublicStorage: true - budgetPath: ./budget.json - runs: 3 - env: - LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} diff --git a/.github/workflows/inspect.yml b/.github/workflows/inspect.yml deleted file mode 100644 index f1b71ccd7..000000000 --- a/.github/workflows/inspect.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: connect - -on: - workflow_dispatch: - -permissions: - id-token: write - contents: read - actions: read - -jobs: - connect: - name: connect - runs-on: ubuntu-latest - steps: - - uses: self-actuated/connect-ssh@master diff --git a/.github/workflows/nuxt-nightly.yml b/.github/workflows/nuxt-nightly.yml new file mode 100644 index 000000000..3a7dd5cb2 --- /dev/null +++ b/.github/workflows/nuxt-nightly.yml @@ -0,0 +1,29 @@ +name: nuxt-nightly + +on: + # schedule: + # - cron: "0 5 * * 1,3,5" # monday,wednesday,friday 5AM + workflow_dispatch: + push: + branches: + ci/nightly + +jobs: + test: + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: "pnpm" + - name: Install dependencies + run: pnpm install + + - name: Nuxt Nightly + uses: danielroe/nuxt-nightly-action@5a73b8ffd230ea1299c32abf39c8d326d3afdf45 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml deleted file mode 100644 index 295618c03..000000000 --- a/.github/workflows/sync.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: sync - -on: - push: - branches: - - main - paths: - - "src/content/blog/**" - - ".github/workflows/test.yml" - -jobs: - sync_devto: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Update blogs on dev.to - run: pnpm nuxi prepare - env: - DEVTO_TOKEN: ${{ secrets.DEVTO_TOKEN }} - SYNC_DEV_TO: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 45fcf80ec..000000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: test - -on: - push: - branches: - - main - pull_request: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number || github.sha }} - cancel-in-progress: ${{ github.event_name != 'push' }} - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - run: corepack enable - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: "pnpm" - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Lint project - run: pnpm lint - - - name: Type check - run: pnpm test:types - - - name: Unit tests - run: pnpm test