Skip to content

Commit

Permalink
add test v2 and cleanup v1 actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jul 29, 2024
1 parent b8db384 commit 56ef158
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 22 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/generated-files_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -46,9 +44,6 @@ jobs:
tar -zxvf geth-alltools-linux-amd64-1.11.5-a38f4108.tar.gz
sudo mv geth-alltools-linux-amd64-1.11.5-a38f4108/abigen /usr/local/bin/
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Generate Go packages and typechain-types
run: |
yarn generate
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/lint_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,13 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: yarn install

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/publish-npm_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: yarn install

Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,13 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18.0.0"
registry-url: "https://registry.npmjs.org"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: yarn install

Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/test_v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Test (V2)

on:
push:
branches:
- main
paths:
- 'v2/**'
pull_request:
branches:
- "*"
types:
- synchronize
- opened
- reopened
- ready_for_review

defaults:
run:
working-directory: ./v2

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "21.0.0"
registry-url: "https://registry.npmjs.org"

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: yarn install

- name: Test (hardhat)
run: yarn test
3 changes: 1 addition & 2 deletions v2/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "v2",
"version": "1.0.0",
"description": "**Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.**",
"main": "index.js",
"author": "zetachain",
"directories": {
"lib": "lib",
"test": "test"
Expand Down

0 comments on commit 56ef158

Please sign in to comment.