diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..d619a57 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Test + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check formatting + run: cargo fmt -- --check + - name: Run tests + run: cargo test --release -- --nocapture + - name: Run performance tests + run: export RUST_TEST_THREADS=1; cargo test --release -- --ignored --nocapture diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 40372d9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: rust - -cache: cargo - -script: - - "rustup component add rustfmt-preview" - - "cargo fmt -- --check" - - "cargo test --release -- --nocapture" - - "export RUST_TEST_THREADS=1; cargo test --release -- --ignored --nocapture" \ No newline at end of file