Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
9422489
style(fmt): applied madara cargo fmt
Trantorian1 Apr 29, 2025
6403887
ci
Trantorian1 Apr 30, 2025
3c81289
fix(ci): invalid local worflow path
Trantorian1 Apr 30, 2025
f5869f3
fix(clippy)
Trantorian1 Apr 30, 2025
7cd2f3d
ci(version): added explicit dep versioning
Trantorian1 May 1, 2025
2852e1f
ci(env): env expose via action output
Trantorian1 May 1, 2025
4e84e04
dep(rust): updated rust version to 1.85
Trantorian1 May 1, 2025
1457be7
ci(rust): added needed rust components
Trantorian1 May 1, 2025
789e584
ci(rust): moved rust setup to an action
Trantorian1 May 1, 2025
0bbf3c7
ci(rust): added cache for clippy and build steps
Trantorian1 May 1, 2025
d7a47f4
fix(ci): invalid cargo hack command in build CI
Trantorian1 May 1, 2025
e8321eb
ci(hack): removed cargo hack
Trantorian1 May 1, 2025
3662e3f
ci(build): fixed compilation
Trantorian1 May 1, 2025
53075d8
ci(merge): testing merge queue
Trantorian1 May 1, 2025
448779c
ci(tmp): getting feature check to run so I can add it to merge queue
Trantorian1 May 1, 2025
560ffa8
ci(cache): moved to `setup-rust-toolchain` for handling caching
Trantorian1 May 1, 2025
e2195ab
ci(merge): merge queue test
Trantorian1 May 1, 2025
4823f1a
ci(merge): invalid merge queue job name
Trantorian1 May 1, 2025
7c4716e
fix(ci)
Trantorian1 May 1, 2025
4255eca
ci(merge): test merge queue
Trantorian1 May 1, 2025
5d6c73a
ci(merge): test merge queue
Trantorian1 May 1, 2025
7437db5
ci(merge): merge queue works
Trantorian1 May 1, 2025
8b57115
ci(lint): added commit message lint
Trantorian1 May 1, 2025
91e7a8e
fix(ci): commitlint
Trantorian1 May 1, 2025
eafbf51
fix(ci): commitlint
Trantorian1 May 1, 2025
595d809
fix(ci): commitlint
Trantorian1 May 1, 2025
2a1f685
fix(ci): commitlint
Trantorian1 May 1, 2025
c189f8a
fix(ci): commitlint
Trantorian1 May 1, 2025
c82d770
fix(ci): commitlint
Trantorian1 May 1, 2025
484ad8f
feat(docker): updated openrpc-testgen-runner dockerfile
Trantorian1 May 1, 2025
02904fe
ci(docker): testing nightly release action
Trantorian1 May 2, 2025
b447957
ci(docker): fixed permissions
Trantorian1 May 2, 2025
780e9e3
ci(docker): fixed tag
Trantorian1 May 2, 2025
86b17d8
ci(docker): fix permissions
Trantorian1 May 2, 2025
dad9742
ci(docker): fix tag
Trantorian1 May 2, 2025
b9d0569
ci(docker): fix tag
Trantorian1 May 2, 2025
8e178bb
ci(docker): fix tag
Trantorian1 May 2, 2025
242bba2
ci(docker): tag extraction works
Trantorian1 May 2, 2025
d780992
ci(docker): fix ghcr tag
Trantorian1 May 2, 2025
a832241
ci(docker): attestation
Trantorian1 May 2, 2025
accb7b5
ci(docker): attestation
Trantorian1 May 2, 2025
2dc6d09
ci(docker): nightly release works
Trantorian1 May 2, 2025
c3830fa
ci(queue): testing merge queue
Trantorian1 May 2, 2025
2e60c5d
ci(commit): fix commitlint
Trantorian1 May 2, 2025
86c0043
ci(queue): merge queue works
Trantorian1 May 2, 2025
8c3f89a
ci(lint): added commitlint to merge queue
Trantorian1 May 2, 2025
6b5819d
fix(gas): updated l1 gas prices
Trantorian1 May 2, 2025
31703d6
ci(release): testing release pipeline
Trantorian1 May 6, 2025
aabd707
fix(ci): invalid workflow file name
Trantorian1 May 6, 2025
46ca9ea
fix(ci): unclosed sequence
Trantorian1 May 6, 2025
789905a
style(prettier)
Trantorian1 May 6, 2025
a0be61e
ci(release): testing release pipeline
Trantorian1 May 6, 2025
d26993b
ci(release): testing release pipeline
Trantorian1 May 6, 2025
a274786
ci(release): testing release pipeline
Trantorian1 May 6, 2025
5ef7965
ci(release): testing release pipeline
Trantorian1 May 6, 2025
3e7a85b
fix(ci): invalid container url
Trantorian1 May 6, 2025
eed33c1
fix(ci): missing tag names
Trantorian1 May 6, 2025
809f967
fix(ci): missing tag names
Trantorian1 May 6, 2025
ee860ba
fix(ci): missing tag names
Trantorian1 May 6, 2025
97a8594
fix(ci): missing tag names
Trantorian1 May 6, 2025
242050c
ci(docker): better caching
Trantorian1 May 6, 2025
43813ed
ci(merge): test merge queue
Trantorian1 May 6, 2025
f625a13
ci(release): updated release action
Trantorian1 May 6, 2025
366b860
ci(merge): test merge queue
Trantorian1 May 6, 2025
c364a52
fix(ci): missing pull request name in merge queue
Trantorian1 May 6, 2025
79f5d17
fix(ci): removed commitlint from merge queue
Trantorian1 May 6, 2025
720f1ed
fix(merge): missing registry info
Trantorian1 May 6, 2025
f9fe30b
fix(docker): docker cache needs buildx
Trantorian1 May 6, 2025
bbc3470
fix(docker): invalid context
Trantorian1 May 6, 2025
3d01554
fix(docker): issue with `.dockerignore`
Trantorian1 May 6, 2025
01a2a93
fix(docker): invalid context
Trantorian1 May 6, 2025
a850163
fix(docker): invalid context
Trantorian1 May 6, 2025
ec01e10
fix(docker): invalid context
Trantorian1 May 6, 2025
889bc54
ci(merge): test merge queue
Trantorian1 May 6, 2025
a1f80b0
ci(merge): test merge queue
Trantorian1 May 6, 2025
652f671
ci(merge): test merge queue
Trantorian1 May 6, 2025
9fb43a1
fix(ci): missing `nightly` version identifier
Trantorian1 May 6, 2025
39c7d73
fix(comments)
Trantorian1 May 6, 2025
036afae
fix(ci): merge queue works
Trantorian1 May 6, 2025
0fad26a
ci(docker): testing release
Trantorian1 May 6, 2025
9622dae
ci(docker): testing release
Trantorian1 May 6, 2025
d9ab1f1
ci(docker): testing release
Trantorian1 May 6, 2025
4c251b1
ci(docker): testing release
Trantorian1 May 6, 2025
4ad1af8
ci(docker): testing release
Trantorian1 May 6, 2025
07a5a80
fix(ci): getting nightly tag on release build
Trantorian1 May 7, 2025
e6f6367
ci(release): release pipeline is ready
Trantorian1 May 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 0 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# will have compiled files and executables
**/target/

# Scarb
**/Scarb.lock

# vscode
**/.vscode/

Expand All @@ -13,7 +10,6 @@
# Docker
**/Dockerfile


# Ignores
**/.gitignore
**/.dockerignore
Expand Down
24 changes: 24 additions & 0 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-action.json
name: Action - Setup Rust
description: Sets up the Rust environment with a configurable toolchain

inputs:
rust-version:
description: Rust version to set up
required: true

runs:
using: composite
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ inputs.rust-version }}
components: cargo, clippy, rustfmt

- name: Rust version
shell: bash
run: rustc --version
39 changes: 0 additions & 39 deletions .github/workflows/build.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/fmt.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/main-merge-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: Workflow - Pull Request Main (merge)

on:
workflow_dispatch:
merge_group:

env:
RUST_VERSION: 1.85
NODE_VERSION: 22
REGISTRY: ghcr.io

jobs:
env-expose:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- run: echo "Exposing env vars..."
outputs:
rust-version: ${{ env.RUST_VERSION }}
node-version: ${{ env.NODE_VERSION }}
registry: ${{ env.REGISTRY }}

build-cargo:
needs: env-expose
uses: ./.github/workflows/task-features.yaml
with:
rust-version: ${{ needs.env-expose.outputs.rust-version }}
secrets: inherit

build-nightly:
needs: [env-expose, build-cargo]
uses: ./.github/workflows/task-build-nightly.yaml
with:
registry: ${{ needs.env-expose.outputs.registry }}
image-name: openrpc-testgen-runner
image-file: ./runner.dockerfile
permissions:
contents: read
packages: write
attestations: write
id-token: write
secrets: inherit
63 changes: 63 additions & 0 deletions .github/workflows/main-pull-request-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: Workflow - Pull Request Main

on:
workflow_dispatch:
pull_request:
branches: [main]

env:
RUST_VERSION: 1.85
NODE_VERSION: 22
REGISTRY: ghcr.io

permissions:
contents: read
packages: write
attestations: write
id-token: write

jobs:
env-expose:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- run: echo "Exposing env vars..."
outputs:
rust-version: ${{ env.RUST_VERSION }}
node-version: ${{ env.NODE_VERSION }}
registry: ${{ env.REGISTRY }}

lint-cargo:
needs: env-expose
uses: ./.github/workflows/task-lint-cargo.yaml
with:
rust-version: ${{ needs.env-expose.outputs.rust-version }}
secrets: inherit

lint-prettier:
needs: env-expose
uses: ./.github/workflows/task-lint-prettier.yaml
with:
node-version: ${{ needs.env-expose.outputs.node-version }}
secrets: inherit

lint-commit:
needs: env-expose
uses: ./.github/workflows/task-lint-commit.yaml
with:
node-version: ${{ needs.env-expose.outputs.node-version }}
commit: ${{ github.event.pull_request.title }}
secrets: inherit

build-cargo:
needs: lint-prettier
uses: ./.github/workflows/task-build-cargo.yaml
with:
rust-version: ${{ needs.env-expose.outputs.rust-version }}
secrets: inherit

# Stub for the build queue
build-nightly:
needs: build-cargo
uses: ./.github/workflows/task-do-nothing.yaml
23 changes: 0 additions & 23 deletions .github/workflows/prettier.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/task-build-cargo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: Task - Build Project

on:
workflow_dispatch:
workflow_call:
inputs:
rust-version:
description: Rust version used for building
required: true
type: string

jobs:
build-cargo:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Rust toolchain
uses: ./.github/actions/setup-rust
with:
rust-version: ${{ inputs.rust-version }}

- name: Build workspace
run: |
cargo build --all --all-features
67 changes: 67 additions & 0 deletions .github/workflows/task-build-nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/refs/heads/master/src/schemas/json/github-workflow.json
name: Task - Build And Publish Nightly Docker Image

on:
workflow_dispatch:
workflow_call:
inputs:
registry:
description: Container registry domain
required: true
type: string
image-name:
description: Name for the Docker image
required: true
type: string
image-file:
description: Dockerfile used to build the image
required: true
type: string

permissions:
contents: read
packages: write
attestations: write
id-token: write

jobs:
build-nightly:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Tags
id: tag
run: |
IMAGE="${{ inputs.registry }}/${{ github.repository_owner }}/${{ inputs.image-name }}"
SHA=$(git rev-parse --short "$GITHUB_SHA")
NIGHTLY="$IMAGE:nightly"
NIGHTLY_SHA="$IMAGE:nightly-$SHA"

echo "nightly=$NIGHTLY" >> $GITHUB_OUTPUT
echo "nightly-sha=$NIGHTLY_SHA" >> $GITHUB_OUTPUT

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ inputs.registry }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
push: true
file: ${{ inputs.image-file }}
tags: |
${{ steps.tag.outputs.nightly }}
${{ steps.tag.outputs.nightly-sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
Loading