Skip to content
Draft
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
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: CI

on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
lint:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
rustup override set 1.82.0
rustup component add rustfmt
rustup component add clippy
rustup component add rust-docs
rustup default 1.82.0
rustup component add clippy rustfmt rust-docs
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # ratchet:Swatinem/rust-cache@v2
- uses: taiki-e/install-action@ae532dedd825648efd18d9c49c9a443d0398ca0a # ratchet:taiki-e/install-action@cargo-make
- uses: taiki-e/install-action@b98f5bfc2edc235d74c94cb39bd9d8cdd69dbbdf # ratchet:taiki-e/install-action@cargo-deny
Expand All @@ -25,8 +25,6 @@ jobs:
- run: cargo deny check
- run: cargo make docs
test:
# Avoid duplicate jobs on PR from a branch on the same repo
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
services:
jaeger:
Expand All @@ -41,14 +39,14 @@ jobs:
steps:
- run: sudo echo "127.0.0.1 jaeger" | sudo tee -a /etc/hosts
- uses: actions/checkout@v4
- run: rustup override set 1.82.0
- run: rustup default 1.82.0
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # ratchet:Swatinem/rust-cache@v2
- uses: taiki-e/install-action@ae532dedd825648efd18d9c49c9a443d0398ca0a # ratchet:taiki-e/install-action@cargo-make
- uses: taiki-e/install-action@82cdcb96475386706489efb01e3807dcc36ea360 # ratchet:taiki-e/install-action@nextest
- run: cargo make test

alls-green:
if: always() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)
if: always()
runs-on: ubuntu-latest
needs:
- lint
Expand Down
Loading