Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Build
permissions:
contents: read

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
with:
toolchain: stable
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
with:
command: build
args: --release
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1
with:
command: build
args: --release --all-features
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@augustuswm

What's the purpose of running build --release and build --release --all-features separately. Is this to make sure the default features and all features both build correctly?

I've duplicated it but was just curious whether it was intentional or accidential.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. There is a local-dev feature that we want to verify, but that feature is not enabled for a production build. I have been meaning for the longest time to make those two builds concurrent.

- run: |
rustup toolchain install
- run: |
cargo build --release
- run: |
cargo build --release --all-features
15 changes: 10 additions & 5 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
name: license-check
permissions:
contents: read

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true

jobs:
license:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- name: Check License Header
uses: apache/skywalking-eyes/header@7a3b6cc34c5980cede4407ffa06fe553a999245d
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Check License Header
uses: apache/skywalking-eyes/header@7a3b6cc34c5980cede4407ffa06fe553a999245d
24 changes: 13 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: lint

permissions:
contents: read

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: cargo fmt --all -- --check
run: cargo fmt --all -- --check
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: |
cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: cargo clippy -- -Dwarnings
run: cargo clippy -- -Dwarnings
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- run: |
cargo clippy -- -Dwarnings
22 changes: 16 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Test
permissions:
contents: read

on:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.ref_name == 'main' && github.sha || 'anysha' }}
cancel-in-progress: true

jobs:
test:
Expand All @@ -24,8 +29,13 @@ jobs:

steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1
with:
toolchain: stable
- run: |
TEST_DATABASE=postgres://test:test@localhost RUST_LOG=v=trace cargo test --all-features
rustup toolchain install
- run: |
cargo build
- run: |
cargo test --all-features
env:
RUST_BACKTRACE: "1"
TEST_DATABASE: postgres://test:test@localhost
RUST_LOG: v=trace,turnstile=trace
6 changes: 5 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# The intent is to keep this updated as new stable versions are relased.
# Probably easiest if it matches dropshot
# https://github.com/oxidecomputer/dropshot/blob/main/rust-toolchain.toml

[toolchain]
channel = "stable"
channel = "1.93.1"
components = ["clippy", "rustfmt"]
Loading