Skip to content

Commit

Permalink
add lint to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SegueII committed May 22, 2024
1 parent 13f829e commit 2c0a82d
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 11 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,34 @@ defaults:
working-directory: "contracts"

jobs:
tests:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: yarn && yarn build
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
GAS: true
steps:
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
Expand All @@ -38,6 +59,8 @@ jobs:
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: yarn && yarn build
- name: Run tests
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ defaults:
working-directory: "ops/l2-genesis"

jobs:
tests:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: make build
- name: Run tests
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ defaults:
working-directory: "node"

jobs:
tests:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: make build
- name: Run tests
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,27 @@ defaults:
working-directory: "oracle"

jobs:
tests:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: make build
- name: Run tests
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: make build-prover
17 changes: 15 additions & 2 deletions .github/workflows/tx-submitter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,27 @@ defaults:
working-directory: "tx-submitter"

jobs:
tests:
check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Lint
run: make lint
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Checkout code
uses: actions/checkout@v3
- name: Run build
run: make build
- name: Run tests
Expand Down

0 comments on commit 2c0a82d

Please sign in to comment.