Skip to content

Revert "Update DEX listings and sort by swap volume, fixed chain names on Protocol Contracts page" #4006

Revert "Update DEX listings and sort by swap volume, fixed chain names on Protocol Contracts page"

Revert "Update DEX listings and sort by swap volume, fixed chain names on Protocol Contracts page" #4006

name: Pull Request CI/CD
on: pull_request
env:
BASE_IMAGE: ghcr.io/graphprotocol/graph-docs-staging
jobs:
lint:
if: contains(github.head_ref, 'crowdin') == false
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Install dependencies
run: pnpm install
- name: Lint
run: pnpm lint
format:
if: contains(github.head_ref, 'crowdin') == false
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Install dependencies
run: pnpm install
- name: Check formatting
run: pnpm prettier:check
typecheck:
if: contains(github.head_ref, 'crowdin') == false
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Install dependencies
run: pnpm install
- name: Typecheck
run: pnpm typecheck
build:
if: contains(github.head_ref, 'crowdin') == false
runs-on: ubuntu-latest
needs: [lint, format, typecheck]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up env
uses: the-guild-org/shared-config/setup@v1
- name: Install dependencies
run: pnpm install
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: . # required to respect .dockerignore
cache-from: type=registry,ref=${{ env.BASE_IMAGE }}:latest
build-args: |
ENVIRONMENT=staging
ORIGIN=https://staging.thegraph.com
push: false