From 6bc82029c3ddd54871f0d37eb2ea595a786716f9 Mon Sep 17 00:00:00 2001 From: Marc-Aurele Besner Date: Fri, 15 Nov 2024 12:23:58 -0500 Subject: [PATCH] fix workflows --- .github/workflows/build.yaml | 13 ++++++------- .github/workflows/gh-container-image.yml | 14 -------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fa2e7fdd9..bb4e62590 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,21 +3,20 @@ name: Build on: [push, pull_request] jobs: - ts-lint-and-build-squid: + codegen-and-build-indexers: runs-on: ubuntu-latest defaults: run: - working-directory: indexers/squid-blockexplorer - name: Run eslint, check typescript and run tests + working-directory: indexers + name: Run codegen and build steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: "16" - - run: npm ci --legacy-peer-deps - - run: npm test - - run: npm run lint - - run: npm run build + - run: yarn install + - run: yarn codegen + - run: yarn build ts-lint-and-build-explorer: runs-on: ubuntu-latest defaults: diff --git a/.github/workflows/gh-container-image.yml b/.github/workflows/gh-container-image.yml index ac769828d..b36ec426d 100644 --- a/.github/workflows/gh-container-image.yml +++ b/.github/workflows/gh-container-image.yml @@ -26,24 +26,10 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }} - - - name: Build processor image - run: docker build . --target processor -t squid-processor --tag $PROCESSOR_NAME - working-directory: indexers/squid-blockexplorer - - - name: Build API server image - run: docker build . --target query-node -t graphql-server --tag $API_SERVER_NAME - working-directory: indexers/squid-blockexplorer - name: Build Health check image run: docker build . --file Dockerfile --tag $HEALTH_CHECK_NAME working-directory: health-check - - - name: Push processor image - run: docker push $PROCESSOR_NAME - - - name: Push API server image - run: docker push $API_SERVER_NAME - name: Push Health check image run: docker push $HEALTH_CHECK_NAME