Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate CI into multiple files #278

Merged
merged 13 commits into from
Mar 15, 2024
Merged
25 changes: 25 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Runs documentation related jobs.

name: doc

on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]

jobs:
doc:
name: doc stable on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - doc
run: cargo make doc
43 changes: 5 additions & 38 deletions .github/workflows/ci.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Runs the CI
# Runs linting related jobs.

name: CI
name: lint

on:
push:
branches:
- main
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]

Expand Down Expand Up @@ -35,8 +34,8 @@ jobs:
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - format
run: cargo make format
- name: cargo make - format-check
run: cargo make format-check

clippy:
name: clippy stable on ubuntu-latest
Expand All @@ -53,35 +52,3 @@ jobs:
run: cargo install cargo-make
- name: cargo make - clippy
run: cargo make clippy

doc:
name: doc stable on ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - format
run: cargo make doc

test:
name: test stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - format
run: cargo make test

26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Runs testing related jobs.

name: test

on:
push:
branches: [main, next]
pull_request:
types: [opened, reopened, synchronize]

jobs:
unit-and-integration:
name: test stable on ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
- name: Install cargo make
run: cargo install cargo-make
- name: cargo make - test
run: cargo make test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Miden node

<a href="https://github.com/0xPolygonMiden/miden-node/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
<a href="https://github.com/0xPolygonMiden/miden-node/actions/workflows/ci.yml"><img src="https://github.com/0xPolygonMiden/miden-node/actions/workflows/ci.yml/badge.svg?branch=main"></a>
<a href="https://github.com/0xPolygonMiden/miden-node/actions/workflows/test.yml"><img src="https://github.com/0xPolygonMiden/miden-node/actions/workflows/test.yml/badge.svg?branch=main"></a>
<a href="https://crates.io/crates/miden-node"><img src="https://img.shields.io/crates/v/miden-node"></a>

This repository holds the Miden node; that is, the software which processes transactions and creates blocks for the Miden rollup.
Expand Down
21 changes: 0 additions & 21 deletions miden-node.toml

This file was deleted.

Loading