Skip to content

Commit

Permalink
Merge pull request #273 from lidofinance/feat/val-1135-e2e-impr-ci-au…
Browse files Browse the repository at this point in the history
…tomation

feat: separated ci jobs
  • Loading branch information
Amuhar authored Nov 8, 2024
2 parents 5d4a537 + 1d3d9ba commit dd083d6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Tests and checks
on: pull_request
jobs:
test:
name: App tests
unit_tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -18,6 +18,20 @@ jobs:
run: yarn lint
- name: Run tests
run: yarn test

e2e_tests:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run e2e transports
run: docker compose -f docker-compose.test.yml up -d
- name: Pull kapi
Expand All @@ -32,3 +46,4 @@ jobs:
KEYS_API_URL: http://127.0.0.1:3000
CHAIN_ID: 17000
LOCATOR_DEVNET_ADDRESS: "0x28FAB2059C713A7F9D8c86Db49f9bb0e96Af1ef8"

3 changes: 2 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ dotenv.config();
const RPC_URL = process.env.RPC_URL!;
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const secretKey = process.env.WALLET_PRIVATE_KEY!;
const CHAIN_ID = process.env.CHAIN_ID;
const CHAIN_ID = process.env.CHAIN_ID || '17000';

const config: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url: RPC_URL,
},
chainId: parseInt(CHAIN_ID, 10),
accounts: [
{
privateKey: secretKey,
Expand Down

0 comments on commit dd083d6

Please sign in to comment.