diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml new file mode 100644 index 00000000000..21b029ba929 --- /dev/null +++ b/.github/workflows/deno.yml @@ -0,0 +1,135 @@ +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 + 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 + 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) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 00000000000..53539c57cdb --- /dev/null +++ b/.github/workflows/docker-publish.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 + 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