Skip to content

Commit

Permalink
Fix CI again, again
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz Gies <[email protected]>
  • Loading branch information
Licenser committed May 22, 2024
1 parent 01373b0 commit ee002c8
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install rust
uses: actions-rs/toolchain@v1
with:
components: rustfmt
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
Expand Down Expand Up @@ -62,16 +58,12 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install rust
uses: actions-rs/toolchain@v1
- name: Run cargo test
uses: actions-rs/cargo@v1
env:
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
AXIOM_URL: https://cloud.dev.axiomtestlabs.co
AXIOM_DATASET: _traces
with:
command: test
run: cargo test

validate-crate:
name: Validate crate
Expand All @@ -85,14 +77,8 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test
uses: actions-rs/cargo@v1
env:
AXIOM_TOKEN: ${{ secrets.AXIOM_TOKEN }}
AXIOM_URL: https://cloud.dev.axiomtestlabs.co
AXIOM_DATASET: _traces
with:
command: publish --dry-run
- name: Test publish
run: cargo publish --dry-run

publish_on_crates_io:
name: Publish on crates.io
Expand All @@ -104,9 +90,7 @@ jobs:
- test
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions-rs/cargo@v1
with:
command: publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish on crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish

0 comments on commit ee002c8

Please sign in to comment.