Skip to content

Commit

Permalink
🧹 Simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ticky committed Aug 4, 2023
1 parent 6ad2fac commit a849fa1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 40 deletions.
49 changes: 13 additions & 36 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,22 @@ on:
pull_request:
branches: [ develop ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Build
run: cargo build --verbose

clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Test & Coverage Reporting
uses: actions-rs/[email protected]

- name: Upload to codecov.io
uses: codecov/[email protected]
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Install Clippy
run: rustup component add clippy
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ repository = "https://github.com/ticky/coloursum"
readme = "Readme.md"
license = "MIT"

[badges]
travis-ci = { repository = "ticky/coloursum", branch = "develop" }
codecov = { repository = "ticky/coloursum", branch = "develop" }

[dependencies]
ansi_term = "0.12.1"
clap = { version = "4.0", features = ["derive"] }
Expand Down

0 comments on commit a849fa1

Please sign in to comment.