Skip to content

Commit

Permalink
Merge pull request #123 from Consensys/feat/gateway-tests-ci
Browse files Browse the repository at this point in the history
feat: added gateway tests in CI
  • Loading branch information
Julink-eth authored May 5, 2024
2 parents 00c8b2c + 6731730 commit 7ae9fd4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 23 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/gateway-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Run gateway tests

on:
pull_request:
branches:
- main
paths:
- "packages/gateway/**"

jobs:
gateway-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
packages/gateway
packages/linea-verifier
pnpm-workspace.yaml
pnpm-lock.yaml
sparse-checkout-cone-mode: false

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8.1.0

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: For act to work (local testing)
run: npm -g install yarn

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Compile contract
run: pnpm --filter linea-resolver-gateway compile

- name: Run tests
run: pnpm --filter linea-resolver-gateway test
7 changes: 0 additions & 7 deletions packages/gateway/.env.uat

This file was deleted.

16 changes: 0 additions & 16 deletions packages/gateway/docker-compose.yml

This file was deleted.

0 comments on commit 7ae9fd4

Please sign in to comment.