Skip to content

temporarily disable v2v3 project launches #9527

temporarily disable v2v3 project launches

temporarily disable v2v3 project launches #9527

Workflow file for this run

name: CI
on:
pull_request:
types:
- ready_for_review
- reopened
- opened
- synchronize
branches:
- main
- dev
push:
branches:
- main
- dev
# manual trigger from Github UI - Action tab
workflow_dispatch:
env:
NEXT_PUBLIC_INFURA_NETWORK: mainnet
PRE_RENDER_INFURA_ID: ${{ secrets.PRE_RENDER_INFURA_ID }}
SUBGRAPH_URL: ${{ secrets.SUBGRAPH_URL }}
NEXT_PUBLIC_SUBGRAPH_URL: ${{ secrets.NEXT_PUBLIC_SUBGRAPH_URL }}
NEXT_PUBLIC_V4_SUBGRAPH_URL: ${{ secrets.NEXT_PUBLIC_V4_SUBGRAPH_URL }}
NEXT_PUBLIC_V4_SEPOLIA_SUBGRAPH_URL: ${{ secrets.NEXT_PUBLIC_V4_SEPOLIA_SUBGRAPH_URL }}
jobs:
jest:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install
- name: Tests with yarn
run: yarn test
lint-translations:
name: Lint translation source files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install
- name: Lint translations template
run: 'yarn i18n:lint'
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: '**/*.po'
- name: Check for modified translation source files
if: steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request'
run: |
echo "🍎 PRs should not change .po files. Only changes to the messages.pot are allowed."
exit 1
compile:
name: Compile Typescript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install packages
run: yarn install --frozen-lockfile
- name: Codegen
run: 'yarn codegen'
- name: Compile
run: 'yarn ts:compile'
# build-db-types:
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 20
# - uses: supabase/setup-cli@v1.3.0
# - name: Start Supabase local development setup
# run: supabase start
# - name: Verify generated types are up-to-date
# run: |
# npm i -g prettier
# supabase gen types typescript --local > src/types/database.types.ts
# prettier --write src/types/database.types.ts
# if [ "$(git diff --ignore-space-at-eol src/types/database.types.ts | wc -l)" -gt "0" ]; then
# echo "Detected uncommitted changes after build. See status below:"
# git diff
# exit 1
# fi
# next-build:
# name: Build
# runs-on: ubuntu-latest
# needs: compile
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 20
# - uses: actions/cache@v2
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
# - name: Install packages
# run: yarn install --frozen-lockfile
# - name: Build NextJS app
# run: 'yarn build'