Skip to content

Commit f8ae762

Browse files
authored
Migrate to GitHub Actions (#81)
* Migrate to GitHub Actions * use actions-rs/* * add "required" parameters
1 parent 9762ea0 commit f8ae762

File tree

3 files changed

+60
-22
lines changed

3 files changed

+60
-22
lines changed

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
minrust: 1.41.0
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
rust: [stable, beta, nightly]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: ${{ matrix.rust }}
22+
profile: minimal
23+
override: true
24+
25+
- name: cargo test --all
26+
uses: actions-rs/cargo@v1
27+
with:
28+
command: test
29+
args: --all
30+
- name: cargo test --benches
31+
if: matrix.rust == 'nightly'
32+
uses: actions-rs/cargo@v1
33+
with:
34+
command: test
35+
args: --benches
36+
37+
- name: Check minimal versions
38+
if: matrix.rust == 'nightly'
39+
run: |
40+
cargo clean
41+
cargo update -Z minimal-versions
42+
cargo check
43+
44+
MSRV:
45+
runs-on: ubuntu-latest
46+
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Install rust ${{ env.minrust }}
50+
uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: ${{ env.minrust }}
53+
profile: minimal
54+
override: true
55+
56+
- name: cargo build
57+
uses: actions-rs/cargo@v1
58+
with:
59+
command: build

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# rust http headers
22

3-
[![Build Status](https://travis-ci.org/hyperium/headers.svg?branch=master)](https://travis-ci.org/hyperium/header)
3+
[![Build Status](https://github.com/hyperium/headers/workflows/CI/badge.svg)](https://github.com/hyperium/headers/actions?query=workflow%3ACI)
44

55
Typed HTTP headers.

0 commit comments

Comments
 (0)