Skip to content

Commit

Permalink
Add initial CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
evestera committed Mar 22, 2024
1 parent e014b74 commit 608782f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

env:
CARGO_TERM_COLOR: always

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: cargo build --workspace --verbose
- run: cargo test --workspace --verbose --color=always -- --color=always
- run: cargo fmt --all --check

msrv-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: rustup toolchain install 1.64
- run: cargo +1.64 build -p ribboncurls --verbose
- run: cargo +1.64 test -p ribboncurls --verbose --color=always -- --color=always
1 change: 1 addition & 0 deletions ribboncurls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ homepage = "https://github.com/evestera/ribboncurls"
repository = "https://github.com/evestera/ribboncurls"
documentation = "https://docs.rs/ribboncurls"
readme = "README.md"
rust-version = "1.64.0"

[dependencies]
html-escape = "0.2.13"
Expand Down

0 comments on commit 608782f

Please sign in to comment.