This repository was archived by the owner on Oct 20, 2025. It is now read-only.
Merge pull request #119 from inkonchain/chore/onchn-1085-archive-ink-kit #252
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Checks | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| install_modules: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Add pnpm store path to env var | |
| id: pnpm-cache | |
| shell: bash | |
| run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
| - name: Cache node modules | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: | | |
| ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
| **/node_modules | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| lint: | |
| needs: install_modules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/base-setup | |
| name: Base Setup | |
| - name: Run linting | |
| run: pnpm run lint | |
| format: | |
| needs: install_modules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/base-setup | |
| name: Base Setup | |
| - name: Run formatting | |
| run: pnpm run format:check | |
| build: | |
| needs: install_modules | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/base-setup | |
| name: Base Setup | |
| - name: Debug Environment Variables | |
| run: env | |
| - name: Building app | |
| run: pnpm run build | |
| - name: Cache build | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: apps/web/.next | |
| key: ${{ runner.os }}-build-store-${{ hashFiles('./apps/web/src') }} | |
| docker-publish: | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| tags: ghcr.io/inkonchain/ink-kit:latest | |
| - name: Log out from GitHub Container Registry | |
| run: docker logout ghcr.io |