Skip to content

Commit

Permalink
refactor: improve GitHub workflows (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci authored May 23, 2024
1 parent b3a1858 commit e4e95c9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ name: artifacts
on:
workflow_dispatch

permissions:
contents: read

jobs:
upload_contracts:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30

steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down Expand Up @@ -44,10 +49,12 @@ jobs:
--tagging 'TagSet=[{Key=AutoDelete,Value=true}]'
upload_binaries:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
matrix:
module: [ infrastructure/tools/keystore-generator, p2p/integrationtest/real-bidder, p2p/integrationtest/provider, bridge/standard/bridge-v1, external/geth, oracle, p2p]

steps:
- name: Set Snapshot Flag
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ on:
branches:
- main

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
commitlint:
name: Check Commit Message
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30

steps:
- name: Checkout Code
Expand Down Expand Up @@ -49,7 +57,8 @@ jobs:

go-modules:
name: Test and Build Go Modules
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 60

steps:
- name: Checkout Code
Expand Down Expand Up @@ -120,7 +129,8 @@ jobs:

foundry:
name: Foundry Checks and Reports
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30
defaults:
run:
working-directory: contracts
Expand Down Expand Up @@ -152,7 +162,8 @@ jobs:

contracts:
name: Test and Build Contracts Scripts
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 30
defaults:
run:
working-directory: contracts
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/infrstructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types:
- completed

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
Expand All @@ -17,6 +20,7 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 120
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ permissions:

jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: 60
strategy:
matrix:
module: [ bridge/standard/bridge-v1, external/geth, oracle, p2p ]

steps:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "FLAGS=--snapshot" >> $GITHUB_ENV
Expand Down

0 comments on commit e4e95c9

Please sign in to comment.