diff --git a/lib/text-size/.github/workflows/ci.yaml b/lib/text-size/.github/workflows/ci.yaml new file mode 100644 index 0000000000..aa0587bd98 --- /dev/null +++ b/lib/text-size/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ +name: CI +on: + pull_request: + push: + branches: + - master + - staging + - trying + +jobs: + rust: + name: Rust + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + env: + RUSTFLAGS: -D warnings + RUSTUP_MAX_RETRIES: 10 + CARGO_NET_RETRY: 10 + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + + - name: Test + run: cargo test --features serde diff --git a/lib/text-size/.travis.yml b/lib/text-size/.travis.yml deleted file mode 100644 index a7d0a0bc81..0000000000 --- a/lib/text-size/.travis.yml +++ /dev/null @@ -1,2 +0,0 @@ -language: rust - diff --git a/lib/text-size/bors.toml b/lib/text-size/bors.toml new file mode 100644 index 0000000000..932be8d090 --- /dev/null +++ b/lib/text-size/bors.toml @@ -0,0 +1,6 @@ +status = [ + "Rust (ubuntu-latest)", + "Rust (windows-latest)", + "Rust (macos-latest)", +] +delete_merged_branches = true