Skip to content

Commit

Permalink
Adjusting CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBloom committed Dec 21, 2023
1 parent b2982f1 commit e393898
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 43 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/cleaniness.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: SquireCore CI
name: Code Cleaniness

on:
push:
Expand All @@ -12,19 +12,15 @@ env:
jobs:
code_cleaniness_checks:
name: Formatting Checks
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [nightly]
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: nightly
components: rustfmt
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo fmt --check --package squire_lib
- run: cargo fmt --check --package squire_sdk
- run: cargo fmt --check --package squire_web
- run: cargo fmt --check --manifest-path squire_web/Cargo.toml
- run: cargo fmt --check --package squire_core
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Squire Coverage

on:
push:
branches: [ main, development ]
branches: [ main ]
pull_request:
branches: [ main, development ]

Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/squire_core_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SquireCore CI

on:
push:
branches: [ main, development ]
branches: [ main ]
pull_request:
branches: [ main, development ]

Expand All @@ -12,17 +12,13 @@ env:
jobs:
squire_core_build_tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [nightly]
os: [ubuntu-latest]
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: stable
components: rustfmt
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- name: Fetch Trunk
uses: jetli/trunk-action@v0.4.0
Expand All @@ -34,4 +30,4 @@ jobs:
mongodb-version: '6.0'
- run: cargo build --package squire_core --verbose
- run: cargo test --package squire_core --verbose --features="db-tests"
- run: cargo doc --package squire_core --verbose
# - run: cargo doc --package squire_core --verbose
17 changes: 7 additions & 10 deletions .github/workflows/squire_lib_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SquireLib CI

on:
push:
branches: [ main, development ]
branches: [ main ]
pull_request:
branches: [ main, development ]

Expand All @@ -15,27 +15,24 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v2
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
components: rustfmt
rust-version: stable
- uses: actions/checkout@v4
- run: cargo build --package squire_lib --verbose
- run: cargo test --package squire_lib --verbose
- run: cargo doc --package squire_lib --verbose
squire_lib_wasm_tests:
name: Wasm Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: hecrj/setup-rust-action@v2
- name: Setup Rust
uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: stable
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo build --package squire_lib --target=wasm32-unknown-unknown --verbose
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/squire_sdk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SquireSDK CI

on:
push:
branches: [ main, development ]
branches: [ main ]
pull_request:
branches: [ main, development ]

Expand All @@ -15,12 +15,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
rust: [stable, beta, nightly]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: stable
components: rustfmt
- uses: taiki-e/install-action@cargo-hack
- uses: actions/checkout@v4
Expand All @@ -30,13 +29,10 @@ jobs:
squire_lib_wasm_tests:
name: Wasm Tests
runs-on: ubuntu-latest
strategy:
matrix:
rust: [nightly, beta, stable]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: stable
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo build --package squire_sdk --features=client --target=wasm32-unknown-unknown --verbose
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/squire_web_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: SquireWeb CI

on:
push:
branches: [ main, development ]
branches: [ main ]
pull_request:
branches: [ main, development ]

Expand All @@ -13,13 +13,10 @@ jobs:
squire_web_build_tests:
name: Build Test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
rust-version: stable
components: rustfmt
targets: wasm32-unknown-unknown
- uses: actions/checkout@v4
Expand Down

0 comments on commit e393898

Please sign in to comment.