Skip to content

Commit eee2ea4

Browse files
committed
Replace Travis with GitHub Actions
1 parent b78edeb commit eee2ea4

File tree

3 files changed

+39
-28
lines changed

3 files changed

+39
-28
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
tags: ["[0-9]+.[0-9]+.[0-9]+"]
7+
pull_request:
8+
branches: ["master"]
9+
workflow_dispatch:
10+
11+
jobs:
12+
ci:
13+
strategy:
14+
matrix:
15+
rust: [beta, stable, 1.38.0]
16+
os: [ubuntu-latest]
17+
experimental: [false]
18+
include:
19+
- rust: nightly
20+
os: ubuntu-latest
21+
experimental: true
22+
runs-on: ${{ matrix.os }}
23+
continue-on-error: ${{ matrix.experimental }}
24+
steps:
25+
- uses: actions/checkout@v3
26+
- uses: dtolnay/rust-toolchain@v1
27+
with:
28+
toolchain: ${{ matrix.rust }}
29+
components: rustfmt
30+
- run: cargo fmt -- --check
31+
- run: cargo test
32+
- run: |
33+
if [ "${{ matrix.rust }}" = "nightly" ]; then
34+
cargo bench
35+
else
36+
true
37+
fi

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ unicode-case-mapping
22
====================
33

44
<div align="center">
5-
<a href="https://travis-ci.com/yeslogic/unicode-case-mapping">
6-
<img src="https://travis-ci.com/yeslogic/unicode-case-mapping.svg?branch=master" alt="Build Status"></a>
5+
<a href="https://github.com/yeslogic/unicode-case-mapping/actions/workflows/ci.yml">
6+
<img src="https://github.com/yeslogic/unicode-case-mapping/actions/workflows/ci.yml/badge.svg" alt="Build Status"></a>
77
<a href="https://docs.rs/unicode-case-mapping">
88
<img src="https://docs.rs/unicode-case-mapping/badge.svg" alt="Documentation">
99
</a>

0 commit comments

Comments
 (0)