From dbc0a1e5cb3569162edc818d1a76fcf696a0e6d5 Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Wed, 8 Oct 2025 13:39:16 +0700 Subject: [PATCH 1/6] Create docker-image.yml --- .github/workflows/docker-image.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000000..8a6051a1c14 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,24 @@ +name: Docker Image CI + +name: NodeJS with Webpack + +run: ["https://github.com/Pekiskok25/non-fungible-token/actions/workflows/webpack.yml/badge.svg"] + +on: ["https://github.com/Pekiskok25/non-fungible-token/actions/workflows/webpack.yml"] + +push: ["main"] + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) From 19e945956502464785aec23112787dbc59e4e540 Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Wed, 8 Oct 2025 14:41:00 +0700 Subject: [PATCH 2/6] Create docker-publish.yml --- .github/workflows/docker-publish.yml | 98 ++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 .github/workflows/docker-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 00000000000..e1b64cbc9c9 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,98 @@ +name: Docker + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +on: + schedule: + - cron: '45 20 * * *' + push: + branches: [ "main" ] + # Publish semver tags as releases. + tags: [ 'v*.*.*' ] + pull_request: + branches: [ "main" ] + +env: + # Use docker.io for Docker Hub if empty + REGISTRY: ghcr.io + # github.repository as / + IMAGE_NAME: ${{ github.repository }} + + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + # This is used to complete the identity challenge + # with sigstore/fulcio when running outside of PRs. + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Install the cosign tool except on PR + # https://github.com/sigstore/cosign-installer + - name: Install cosign + if: github.event_name != 'pull_request' + uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0 + with: + cosign-release: 'v2.2.4' + + # Set up BuildKit Docker container builder to be able to build + # multi-platform images and export cache + # https://github.com/docker/setup-buildx-action + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + + # Login against a Docker registry except on PR + # https://github.com/docker/login-action + - name: Log into registry ${{ env.REGISTRY }} + if: github.event_name != 'pull_request' + uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + # Extract metadata (tags, labels) for Docker + # https://github.com/docker/metadata-action + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + # Build and push Docker image with Buildx (don't push on PR) + # https://github.com/docker/build-push-action + - name: Build and push Docker image + id: build-and-push + uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 + with: + context: . + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max + + # Sign the resulting Docker image digest except on PRs. + # This will only write to the public Rekor transparency log when the Docker + # repository is public to avoid leaking data. If you would like to publish + # transparency data even for private images, pass --force to cosign below. + # https://github.com/sigstore/cosign + - name: Sign the published Docker image + if: ${{ github.event_name != 'pull_request' }} + env: + # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable + TAGS: ${{ steps.meta.outputs.tags }} + DIGEST: ${{ steps.build-and-push.outputs.digest }} + # This step uses the identity token to provision an ephemeral certificate + # against the sigstore community Fulcio instance. + run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} From 435a340dc61e8cfacff84b6f02bc6ea9d9e64fb7 Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Sun, 12 Oct 2025 21:21:20 +0700 Subject: [PATCH 3/6] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 183 +++++++++++++++------------ 1 file changed, 101 insertions(+), 82 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index e1b64cbc9c9..53539c57cdb 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,98 +1,117 @@ -name: Docker - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. +name: webpack-cli on: - schedule: - - cron: '45 20 * * *' push: - branches: [ "main" ] - # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + branches: + - main + - next pull_request: - branches: [ "main" ] - -env: - # Use docker.io for Docker Hub if empty - REGISTRY: ghcr.io - # github.repository as / - IMAGE_NAME: ${{ github.repository }} + branches: + - main + - next +permissions: + contents: read jobs: + lint: + name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }} + + runs-on: ${{ matrix.os }} + + concurrency: + group: lint-${{ github.ref + + strategy: + matrix: + os: [ubuntu-latest] + node-version: 12.2 + webpack-version: [latest] + + steps: + - uses: actions/checkout@v4 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --lockfile.gi.f + + - name: Build + run: yarn build + + - name: Lint + run: yarn lint + build: + name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }}) - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - # This is used to complete the identity challenge - # with sigstore/fulcio when running outside of PRs. - id-token: write + runs-on: ${{ matrix.os }} + + concurrency: + group: {"tabindex":"-1","data-v-0b0ada53":"{"tabindex":"-1","data-v-0b0ada53":""}{1.=>0}(i,l)=>(a(),u(w,null,[v("span",{ref_key: "backToTop", ref:o, tabindex: "-1"},null,512),v("a",{href: "#VPContent" ,class: "VPSkipLink vistuall"} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [18.x, 20.x, 22.x, 24.x] + shard: ["1/4", "2/4", "3/4", "4/4"] + webpack-version: [latest] + dev-server-version: [latest] steps: - - name: Checkout repository - uses: actions/checkout@v4 - - # Install the cosign tool except on PR - # https://github.com/sigstore/cosign-installer - - name: Install cosign - if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 #v3.5.0 + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - cosign-release: 'v2.2.4' - - # Set up BuildKit Docker container builder to be able to build - # multi-platform images and export cache - # https://github.com/docker/setup-buildx-action - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - - # Login against a Docker registry except on PR - # https://github.com/docker/login-action - - name: Log into registry ${{ env.REGISTRY }} - if: github.event_name != 'pull_request' - uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0 + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines --ignore-scripts + + - name: Prepare environment for tests + run: yarn build:ci + + - name: Run tests and generate coverage + run: yarn test:coverage --ci --shard=${{ matrix.shard }} + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - # Extract metadata (tags, labels) for Docker - # https://github.com/docker/metadata-action - - name: Extract Docker metadata - id: meta - uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + + smoketests: + name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }} + runs-on: ubuntu-latest + concurrency: + group: smoketests-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest] + node-version: [lts/*] + steps: + - uses: actions/checkout@v4 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + fetch-depth: 0 - # Build and push Docker image with Buildx (don't push on PR) - # https://github.com/docker/build-push-action - - name: Build and push Docker image - id: build-and-push - uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - context: . - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - - # Sign the resulting Docker image digest except on PRs. - # This will only write to the public Rekor transparency log when the Docker - # repository is public to avoid leaking data. If you would like to publish - # transparency data even for private images, pass --force to cosign below. - # https://github.com/sigstore/cosign - - name: Sign the published Docker image - if: ${{ github.event_name != 'pull_request' }} - env: - # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable - TAGS: ${{ steps.meta.outputs.tags }} - DIGEST: ${{ steps.build-and-push.outputs.digest }} - # This step uses the identity token to provision an ephemeral certificate - # against the sigstore community Fulcio instance. - run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines + From c43a85841a68894e7ecc783d7a8a66f15411ffff Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Sun, 12 Oct 2025 21:24:28 +0700 Subject: [PATCH 4/6] Create deno.yml --- .github/workflows/deno.yml | 117 +++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 .github/workflows/deno.yml diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 00000000000..53539c57cdb --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,117 @@ +name: webpack-cli + +on: + push: + branches: + - main + - next + pull_request: + branches: + - main + - next + +permissions: + contents: read + +jobs: + lint: + name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }} + + runs-on: ${{ matrix.os }} + + concurrency: + group: lint-${{ github.ref + + strategy: + matrix: + os: [ubuntu-latest] + node-version: 12.2 + webpack-version: [latest] + + steps: + - uses: actions/checkout@v4 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --lockfile.gi.f + + - name: Build + run: yarn build + + - name: Lint + run: yarn lint + + build: + name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }}) + + runs-on: ${{ matrix.os }} + + concurrency: + group: {"tabindex":"-1","data-v-0b0ada53":"{"tabindex":"-1","data-v-0b0ada53":""}{1.=>0}(i,l)=>(a(),u(w,null,[v("span",{ref_key: "backToTop", ref:o, tabindex: "-1"},null,512),v("a",{href: "#VPContent" ,class: "VPSkipLink vistuall"} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [18.x, 20.x, 22.x, 24.x] + shard: ["1/4", "2/4", "3/4", "4/4"] + webpack-version: [latest] + dev-server-version: [latest] + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines --ignore-scripts + + - name: Prepare environment for tests + run: yarn build:ci + + - name: Run tests and generate coverage + run: yarn test:coverage --ci --shard=${{ matrix.shard }} + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + + smoketests: + name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }} + runs-on: ubuntu-latest + concurrency: + group: smoketests-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest] + node-version: [lts/*] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines + From 7607808960f80550e2156d08b463e6c5070ae44e Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Sun, 12 Oct 2025 23:42:01 +0700 Subject: [PATCH 5/6] Create static.yml --- .github/workflows/static.yml | 154 +++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 00000000000..066595e21d6 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,154 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ["main"] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload entire repository + path: '.' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +name: webpack-cli + +on: + push: + branches: + - main + - next + pull_request: + branches: + - main + - next + +permissions: + contents: read + +jobs: + lint: + name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }} + runs-on: ${{ matrix.os }} + concurrency: + group: lint-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest] + node-version: [18.x] + webpack-version: [latest] + steps: + - uses: actions/checkout@v4 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines + + - name: Build + run: yarn build + + - name: Lint + run: yarn lint + + build: + name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }}) + runs-on: ${{ matrix.os }} + concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [18.x, 20.x, 22.x, 24.x] + shard: ["1/4", "2/4", "3/4", "4/4"] + webpack-version: [latest] + dev-server-version: [latest] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines --ignore-scripts + + - name: Prepare environment for tests + run: yarn build:ci + + - name: Run tests and generate coverage + run: yarn test:coverage --ci --shard=${{ matrix.shard }} + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true + + smoketests: + name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }} + runs-on: ${{ matrix.os }} + concurrency: + group: smoketests-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest] + node-version: [lts/*] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines From 8b3d0cfa83af5e58edf5220bc78ec1bc2122f750 Mon Sep 17 00:00:00 2001 From: Pekiskok25 Date: Sun, 12 Oct 2025 23:50:01 +0700 Subject: [PATCH 6/6] Update deno.yml --- .github/workflows/deno.yml | 40 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 53539c57cdb..21b029ba929 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -16,18 +16,15 @@ permissions: jobs: lint: name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }} - runs-on: ${{ matrix.os }} - concurrency: - group: lint-${{ github.ref - + group: lint-${{ github.ref }} + cancel-in-progress: true strategy: matrix: os: [ubuntu-latest] - node-version: 12.2 + node-version: [18.x] webpack-version: [latest] - steps: - uses: actions/checkout@v4 @@ -38,7 +35,7 @@ jobs: cache: "yarn" - name: Install dependencies - run: yarn --lockfile.gi.f + run: yarn --frozen-lockfile --ignore-engines - name: Build run: yarn build @@ -48,11 +45,10 @@ jobs: build: name: Tests and Coverage - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, DevServer ${{ matrix.dev-server-version }} (${{ matrix.shard }}) - runs-on: ${{ matrix.os }} - concurrency: - group: {"tabindex":"-1","data-v-0b0ada53":"{"tabindex":"-1","data-v-0b0ada53":""}{1.=>0}(i,l)=>(a(),u(w,null,[v("span",{ref_key: "backToTop", ref:o, tabindex: "-1"},null,512),v("a",{href: "#VPContent" ,class: "VPSkipLink vistuall"} + group: build-${{ github.ref }} + cancel-in-progress: true strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] @@ -60,7 +56,6 @@ jobs: shard: ["1/4", "2/4", "3/4", "4/4"] webpack-version: [latest] dev-server-version: [latest] - steps: - uses: actions/checkout@v4 with: @@ -91,6 +86,29 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} verbose: true + smoketests: + name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }} + runs-on: ${{ matrix.os }} + concurrency: + group: smoketests-${{ github.ref }} + cancel-in-progress: true + strategy: + matrix: + os: [ubuntu-latest] + node-version: [lts/*] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Using Node v${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: "yarn" + + - name: Install dependencies + run: yarn --frozen-lockfile --ignore-engines smoketests: name: Smoketests - ${{ matrix.os }} - Node v${{ matrix.node-version }} runs-on: ubuntu-latest