Skip to content

Commit af0a8db

Browse files
committed
Add configuration for GitHub Actions
1 parent e1f8abb commit af0a8db

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

.github/workflows/main.yml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
pull_request:
7+
8+
jobs:
9+
Test:
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
rust: [1.36.0, stable, beta, nightly]
14+
exclude:
15+
- os: macos-latest
16+
rust: 1.36.0
17+
- os: windows-latest
18+
rust: 1.36.0
19+
- os: macos-latest
20+
rust: beta
21+
- os: windows-latest
22+
rust: beta
23+
- os: macos-latest
24+
rust: nightly
25+
- os: windows-latest
26+
rust: nightly
27+
28+
runs-on: ${{ matrix.os }}
29+
30+
steps:
31+
- uses: actions/checkout@v1
32+
- uses: actions-rs/toolchain@v1
33+
with:
34+
profile: minimal
35+
toolchain: ${{ matrix.rust }}
36+
override: true
37+
- uses: actions-rs/cargo@v1
38+
with:
39+
command: build
40+
args: --all-targets
41+
- uses: actions-rs/cargo@v1
42+
with:
43+
command: test
44+
45+
WASM:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v1
49+
- uses: actions-rs/toolchain@v1
50+
with:
51+
profile: minimal
52+
toolchain: stable
53+
target: wasm32-unknown-unknown
54+
override: true
55+
- uses: actions-rs/cargo@v1
56+
with:
57+
command: build
58+
args: --target wasm32-unknown-unknown
59+
60+
Lint:
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v1
64+
- uses: actions-rs/toolchain@v1
65+
with:
66+
profile: minimal
67+
toolchain: stable
68+
override: true
69+
components: rustfmt, clippy
70+
- uses: actions-rs/cargo@v1
71+
with:
72+
command: fmt
73+
args: --all -- --check
74+
- uses: actions-rs/cargo@v1
75+
if: always()
76+
with:
77+
command: clippy
78+
args: --workspace --all-targets -- -D warnings
79+
80+
Audit:
81+
runs-on: ubuntu-latest
82+
steps:
83+
- uses: actions/checkout@v1
84+
- uses: EmbarkStudios/cargo-deny-action@v0

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rust-url
22
========
33

4-
[![Travis build Status](https://travis-ci.com/servo/rust-url.svg?branch=master)](https://travis-ci.com/servo/rust-url) [![Appveyor build status](https://ci.appveyor.com/api/projects/status/ulkqx2xcemyod6xa?svg=true)](https://ci.appveyor.com/project/Manishearth/rust-url)
4+
[![Build status](https://github.com/servo/rust-url/workflows/CI/badge.svg)](https://github.com/servo/rust-url/actions?query=workflow%3ACI)
55

66
URL library for Rust, based on the [URL Standard](https://url.spec.whatwg.org/).
77

deny.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[licenses]
2+
allow-osi-fsf-free = "either"
3+
copyleft = "warn"
4+
private = { ignore = true }

0 commit comments

Comments
 (0)