8000 Merge pull request #24 from dtolnay-contrib/actions · unicode-rs/unicode-xid@23ffc13 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23ffc13

Browse files
authored
Merge pull request #24 from dtolnay-contrib/actions
Convert CI from Travis to GitHub Actions
2 parents aa98988 + c7fc834 commit 23ffc13

File tree

4 files changed

+33
-30
lines changed

4 files changed

+33
-30
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule: [cron: "40 1 * * *"]
7+
8+
jobs:
9+
test:
10+
name: Rust ${{matrix.rust}}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
rust: [nightly, beta, stable, 1.46.0, 1.17.0]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: ${{matrix.rust}}
21+
profile: minimal
22+
override: true
23+
- run: cargo build --features bench
24+
if: matrix.rust == 'nightly'
25+
- run: cargo test --features bench
26+
if: matrix.rust == 'nightly'
27+
- run: cargo bench --features bench
28+
if: matrix.rust == 'nightly'
29+
- run: cargo build
30+
- run: cargo test
31+
if: matrix.rust != '1.17.0'

.travis.yml

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

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ Determine whether characters have the XID_Start
1818
or XID_Continue properties according to
1919
Unicode Standard Annex #31.
2020
"""
21-
exclude = ["/scripts/*", "/.travis.yml"]
22-
23-
[badges]
24-
travis-ci = { repository = "unicode-rs/unicode-xid" }
21+
exclude = ["/.github/**", "/scripts/*"]
2522

2623
[features]
2724
default = []

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Determine if a `char` is a valid identifier for a parser and/or lexer according to
44
[Unicode Standard Annex #31](http://www.unicode.org/reports/tr31/) rules.
55

6-
[![Build Status](https://travis-ci.org/unicode-rs/unicode-xid.svg)](https://travis-ci.org/unicode-rs/unicode-xid)
6+
[![Build Status](https://img.shields.io/github/workflow/status/unicode-rs/unicode-xid/CI/master)](https://github.com/unicode-rs/unicode-xid/actions?query=branch%3Amaster)
77

88
[Documentation](https://unicode-rs.github.io/unicode-xid/unicode_xid/index.html)
99

0 commit comments

Comments
 (0)
0