Skip to content

Commit ed1efaf

Browse files
committed
switch ci to actions
1 parent b5b9850 commit ed1efaf

File tree

3 files changed

+76
-25
lines changed

3 files changed

+76
-25
lines changed

.github/workflows/ci.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
push:
8+
branches:
9+
- develop
10+
11+
env:
12+
RUSTFLAGS: -Dwarnings
13+
RUST_BACKTRACE: 1
14+
15+
jobs:
16+
rustfmt:
17+
name: rustfmt
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: sfackler/actions/rustup@master
22+
- uses: sfackler/actions/rustfmt@master
23+
24+
clippy:
25+
name: clippy
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: sfackler/actions/rustup@master
30+
- run: echo "::set-output name=version::$(rustc --version)"
31+
id: rust-version
32+
- uses: actions/cache@v1
33+
with:
34+
path: ~/.cargo/registry/index
35+
key: index-${{ runner.os }}-${{ github.run_number }}
36+
restore-keys: |
37+
index-${{ runner.os }}-
38+
- run: cargo generate-lockfile
39+
- uses: actions/cache@v1
40+
with:
41+
path: ~/.cargo/registry/cache
42+
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
43+
- run: cargo fetch
44+
- uses: actions/cache@v1
45+
with:
46+
path: target
47+
key: clippy-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
48+
- run: cargo clippy --all --all-targets
49+
50+
test:
51+
name: test
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v2
55+
- uses: sfackler/actions/rustup@master
56+
with:
57+
version: 1.56.0
58+
- run: echo "::set-output name=version::$(rustc --version)"
59+
id: rust-version
60+
- uses: actions/cache@v1
61+
with:
62+
path: ~/.cargo/registry/index
63+
key: index-${{ runner.os }}-${{ github.run_number }}
64+
restore-keys: |
65+
index-${{ runner.os }}-
66+
- run: cargo generate-lockfile
67+
- uses: actions/cache@v1
68+
with:
69+
path: ~/.cargo/registry/cache
70+
key: registry-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
71+
- run: cargo fetch
72+
- uses: actions/cache@v1
73+
with:
74+
path: target
75+
key: test-target-${{ runner.os }}-${{ steps.rust-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}y
76+
- run: cargo test --all

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# stringprep
22

3-
[![CircleCI](https://circleci.com/gh/sfackler/rust-stringprep.svg?style=shield)](https://circleci.com/gh/sfackler/rust-stringprep)
4-
53
[Documentation](https://docs.rs/stringprep)
64

75
An implementation of the stringprep algorithm as defined in [RFC 3454][].

circle.yml

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

0 commit comments

Comments
 (0)