summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2024-02-10 08:11:56 +0100
committerGitHub <noreply@github.com>2024-02-10 08:11:56 +0100
commit2ef07c6228e39b752a48522a254dd26fa18d91f2 (patch)
tree6e36cc03c22a03bafc50db952053afed5d542d8c
parentcdbfa55a2bd38a250bae5eb3bbfe89bd3190cc37 (diff)
parent011d14015a5611f03a677fc5213c59a8935dee0d (diff)
Merge pull request #6 from matthiasbeyer/ci
Ci
-rw-r--r--.builds/debian.yml14
-rw-r--r--.github/workflows/ci.yml78
-rw-r--r--.travis.yml36
3 files changed, 78 insertions, 50 deletions
diff --git a/.builds/debian.yml b/.builds/debian.yml
deleted file mode 100644
index 9aba55c..0000000
--- a/.builds/debian.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-image: debian/stable
-sources:
- - https://git.sr.ht/~matthiasbeyer/kairos
-packages:
- - curl
- - openssl
-tasks:
- - install: curl https://sh.rustup.rs -sSf | sh -s -- -y
- - build: |
- cd kairos
- PATH="$HOME/.cargo/bin:$PATH" cargo build --all
- - test: |
- cd kairos
- PATH="$HOME/.cargo/bin:$PATH" cargo test --all
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b70efcc
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,78 @@
+on: [push, pull_request]
+
+name: MSRV
+
+jobs:
+ check:
+ name: Check
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v4.1.1
+
+ - name: Install toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: 1.75.0
+
+ - name: Cache
+ uses: Swatinem/rust-cache@v2
+
+ - name: Run cargo check
+ run: cargo check --all-features --examples --tests
+
+ test:
+ name: Test Suite
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v4.1.1
+
+ - name: Install toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: 1.75.0
+
+ - name: Cache
+ uses: Swatinem/rust-cache@v2
+
+ - name: Run cargo test
+ run: cargo test --all-features
+
+ fmt:
+ needs: [check]
+ name: Rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v4.1.1
+
+ - name: Install toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: 1.75.0
+ components: rustfmt
+
+ - name: Run cargo fmt
+ run: cargo fmt --all -- --check
+
+ clippy:
+ needs: [check]
+ name: Clippy
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v4.1.1
+
+ - name: Install toolchain
+ uses: dtolnay/rust-toolchain@master
+ with:
+ toolchain: 1.75.0
+ components: clippy
+
+ - name: Cache
+ uses: Swatinem/rust-cache@v2
+
+ - name: Run cargo clippy
+ run: cargo clippy --all-targets --all-features -- -D warnings
+
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 23d0b5b..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,36 +0,0 @@
-sudo: false
-os:
- - linux
-
-dist:
- - trusty
-
-language: rust
-
-rust:
- - 1.32.0
- - 1.33.0
- - stable
- - beta
- - nightly
-
-matrix:
- allow_failures:
- - rust: nightly
-
-script:
- - cargo build --all --all-features --verbose -j 1
- - cargo test --all --all-features --verbose -j 1
-
-cache:
- cargo: true
-
-notifications:
- email:
- on_success: never
- irc:
- channels:
- - chat.freenode.net#imag
- template:
- - "%{repository_name} (%{branch} @ %{commit} by %{author}): %{result}"
-