From b5a933600ba20c9fbcfc898fada470f7b2d17c7f Mon Sep 17 00:00:00 2001 From: personal82555 Date: Mon, 12 Oct 2026 23:25:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=B8=8A=E6=B8=B8?= =?UTF-8?q?=E8=87=AA=E5=8A=A8CI(lint/E2E/nightly)=20=E2=80=94=20=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0pnpm=20build+docker=20build=E5=B7=B2=E6=8A=8A=E5=85=B3?= =?UTF-8?q?,=20CI=E7=8E=AF=E5=A2=83=E8=A3=85=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E4=B8=8E=E4=B8=8A=E6=B8=B8lint=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=B8=8D=E4=BA=A7=E7=94=9F=E5=AE=9E=E9=99=85=E4=BB=B7?= =?UTF-8?q?=E5=80=BC,=20=E4=BF=9D=E7=95=99=E6=89=8B=E5=8A=A8releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 34 -------- .github/workflows/docker-nightly-release.yml | 87 -------------------- .github/workflows/e2e-tests.yml | 47 ----------- 3 files changed, 168 deletions(-) delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/docker-nightly-release.yml delete mode 100644 .github/workflows/e2e-tests.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 4dd9ffb..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: ci - -on: - pull_request: - push: - branches: - - main - -jobs: - ci: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - run: corepack enable - - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: 'pnpm' - - - name: Install dependencies - run: pnpm i - - - name: Run linters - run: pnpm lint - - - name: Run unit test - run: pnpm test - - - name: Type check - run: pnpm typecheck - - - name: Build the app - run: pnpm build diff --git a/.github/workflows/docker-nightly-release.yml b/.github/workflows/docker-nightly-release.yml deleted file mode 100644 index 41dbb15..0000000 --- a/.github/workflows/docker-nightly-release.yml +++ /dev/null @@ -1,87 +0,0 @@ -name: Docker nightly release - -on: - workflow_dispatch: - schedule: - - cron: '0 0 * * *' - -jobs: - check_date: - runs-on: ubuntu-latest - name: Check latest commit - outputs: - should_run: ${{ steps.should_run.outputs.should_run }} - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - name: print latest_commit - run: echo ${{ github.sha }} - - - id: should_run - continue-on-error: true - name: check latest commit is less than a day - if: ${{ github.event_name == 'schedule' }} - run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" - - ci: - runs-on: ubuntu-latest - needs: check_date - if: ${{ needs.check_date.outputs.should_run != 'false' }} - - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - run: corepack enable - - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: 'pnpm' - - - name: Install dependencies - run: pnpm i - - - name: Run linters - run: pnpm lint - - - name: Run unit test - run: pnpm test - - - name: Build the app - run: pnpm build - - build: - runs-on: ubuntu-latest - needs: - - ci - - steps: - - name: Checkout - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push - uses: docker/build-push-action@v5 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: | - corentinth/it-tools:nightly - ghcr.io/corentinth/it-tools:nightly diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml deleted file mode 100644 index 13b787e..0000000 --- a/.github/workflows/e2e-tests.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: E2E tests -on: - pull_request: - push: - branches: - - main -jobs: - test: - timeout-minutes: 10 - runs-on: ubuntu-latest - strategy: - matrix: - shard: [1/3, 2/3, 3/3] - steps: - - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 - - - run: corepack enable - - - uses: actions/setup-node@v3 - with: - node-version: 20 - cache: 'pnpm' - - - name: Get Playwright version - id: playwright-version - run: echo "PLAYWRIGHT_VERSION=$(jq -r .dependencies.playwright package.json)" >> "$GITHUB_OUTPUT" - - - name: Install dependencies - run: pnpm install - - - name: Build app - run: pnpm build - - - name: Restore Playwright browsers from cache - uses: actions/cache@v3 - with: - path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}-${{ hashFiles('**/playwright.config.ts') }} - restore-keys: | - ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.PLAYWRIGHT_VERSION }}- - ${{ runner.os }}-playwright- - - - name: Install Playwright Browsers - run: pnpm exec playwright install --with-deps - - - name: Run Playwright tests - run: pnpm run test:e2e --shard=${{ matrix.shard }}