Skip to content

Commit

Permalink
More ci updates
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser authored and darach committed Apr 18, 2024
1 parent 5d5676b commit 7b560c9
Show file tree
Hide file tree
Showing 15 changed files with 84 additions and 13 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
branches: [main]

jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check bans licenses sources
license:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -87,6 +94,6 @@ jobs:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
needs: [format, clippy-check, unused-deps, safety, license]
needs: [format, clippy-check, unused-deps, safety, license, audit]
steps:
- run: echo "All tests passed"
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
name: test-errors
path: tremor-cli/tests/**/*.log
- name: Upload coverage to Codecov
uses: Wandalen/wretry.action@v1.0.42
uses: Wandalen/wretry.action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
56 changes: 49 additions & 7 deletions .github/workflows/publish-crates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,62 @@ name: "Publish crates"
on: workflow_dispatch

jobs:
publish-tremor-crates:
name: Publish tremor crates
publish-tremor-common:
name: Publish tremor common
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: katyo/publish-crates@v2
- run: cargo install cargo-release
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo release publish -p tremor-common -x

publish-tremor-value:
needs: [publish-tremor-common]
name: Publish tremor value
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: "./tremor-script"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
fetch-depth: 0
- run: cargo install cargo-release
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo release publish -p tremor-value -x

publish-tremor-influx:
name: Publish tremor influx
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: cargo install cargo-release
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo release publish -p tremor-influx -x

publish-tremor-script:
needs: [publish-tremor-common, publish-tremor-value, publish-tremor-influx]
name: Publish tremor script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: cargo install cargo-release
- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo release publish -p tremor-script -x

invoke-tremor-language-server:
needs: [publish-tremor-crates]
needs: [publish-tremor-script]
name: Trigger Tremor LS release
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
echo "$flags"
echo "flags=$flags" >> $GITHUB_ENV
- name: Upload coverage to Codecov
uses: Wandalen/wretry.action@v1.0.42
uses: Wandalen/wretry.action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
echo "flags=$flags" >> $GITHUB_ENV
- name: Upload coverage to Codecov
uses: Wandalen/wretry.action@v1.0.42
uses: Wandalen/wretry.action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Creating test packages
run: make test-packages
Expand Down
1 change: 1 addition & 0 deletions tremor-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "tremor-api"
version = "0.13.0-rc.20"
homepage = "https://www.tremor.rs"

[dependencies]
halfbrown = "0.2"
Expand Down
1 change: 1 addition & 0 deletions tremor-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "tremor-cli"
version = "0.13.0-rc.20"
homepage = "https://www.tremor.rs"

[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors-aws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors-aws"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors-gcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors-gcp"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors-object-storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors-object-storage"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors-otel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors-otel"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors-test-helpers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors-test-helpers"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
3 changes: 3 additions & 0 deletions tremor-connectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-connectors"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 0 additions & 1 deletion tremor-interceptor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description = "Tremor Preprocessors, Postprocessors, and maybe soon: Interceptor
documentation = "https://docs.tremor.rs"
homepage = "https://www.tremor.rs"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/tremor-rs/tremor-runtime"
version = "0.13.0-rc.20"
rust-version = "1.62"
Expand Down
3 changes: 3 additions & 0 deletions tremor-system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
name = "tremor-system"
version = "0.13.0-rc.20"
edition = "2021"
license = "Apache-2.0"
homepage = "https://www.tremor.rs"
authors = ["The Tremor Team"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down

0 comments on commit 7b560c9

Please sign in to comment.