forked from jonhoo/fantoccini
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We now have good coverage across OSes, code coverage checking, better lint checking, feature combination checking, and msrv/minimal-versions checks.
- Loading branch information
Showing
19 changed files
with
216 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
coverage: | ||
range: 90..100 # set a high standard for ourselves | ||
round: down | ||
precision: 2 | ||
status: | ||
project: | ||
default: | ||
threshold: 1% | ||
ignore: | ||
- "ci" | ||
- "tests" | ||
# Make less noisy comments | ||
comment: | ||
layout: "files" | ||
require_changes: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: [push] | ||
name: coverage | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install browsers | ||
run: | | ||
./ci/ubuntu-latest-firefox | ||
./ci/ubuntu-latest-chrome | ||
- name: Install cargo-tarpaulin | ||
uses: actions-rs/install@v0.1 | ||
with: | ||
crate: cargo-tarpaulin | ||
version: latest | ||
use-tool-cache: true | ||
- name: Generate code coverage | ||
run: | | ||
cargo tarpaulin --verbose --timeout 120 --out Xml | ||
- name: Upload to codecov.io | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
on: [push] | ||
name: cargo hack | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- uses: actions/checkout@v2 | ||
- name: Install cargo-hack | ||
uses: actions-rs/install@v0.1 | ||
with: | ||
crate: cargo-hack | ||
version: latest | ||
use-tool-cache: true | ||
- name: cargo hack | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: hack | ||
args: --feature-powerset --exclude-features bench_private check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
on: [push] | ||
name: With dependencies at minimal versions | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
- uses: actions/checkout@v2 | ||
- name: Install browsers | ||
run: | | ||
./ci/ubuntu-latest-firefox | ||
./ci/ubuntu-latest-chrome | ||
- name: cargo update -Zminimal-versions | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: update | ||
toolchain: nightly | ||
args: -Zminimal-versions | ||
- name: cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
on: [push] | ||
name: Minimum Supported Rust Version | ||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.53.0 # or patterns | ||
override: true | ||
- uses: actions/checkout@v2 | ||
- name: cargo +1.52.0 check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: [push] | ||
name: lint | ||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.toolchain }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [stable, beta] | ||
steps: | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
components: rustfmt, clippy | ||
- uses: actions/checkout@v2 | ||
- name: cargo fmt --check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --check | ||
- name: cargo doc | ||
uses: actions-rs/cargo@v1 | ||
if: always() | ||
with: | ||
command: doc | ||
args: --no-deps --all-features | ||
- name: cargo clippy | ||
uses: actions-rs/clippy-check@v1 | ||
if: always() | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: [push] | ||
name: cargo test | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.os }} / ${{ matrix.browser }} (${{ matrix.toolchain }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
browser: [firefox, chrome] | ||
toolchain: [stable] | ||
include: | ||
- os: ubuntu-latest | ||
browser: chrome | ||
toolchain: beta | ||
- os: ubuntu-latest | ||
browser: chrome | ||
toolchain: nightly | ||
steps: | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.toolchain }} | ||
- uses: actions/checkout@v2 | ||
- name: Install ${{ matrix.browser }} | ||
run: | | ||
./ci/${{ matrix.os }}-${{ matrix.browser }} | ||
- name: cargo test | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: ${{ matrix.browser }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
brew install --cask google-chrome | ||
brew install --cask chromedriver | ||
chromedriver & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
brew install --cask firefox | ||
brew install geckodriver | ||
geckodriver & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
sudo apt-get update | ||
sudo apt-get install chromium-chromedriver | ||
chromedriver & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
sudo apt-get update | ||
sudo apt-get install firefox-geckodriver | ||
geckodriver & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
choco install googlechrome | ||
choco install chromedriver | ||
Start-Process -FilePath chromedriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
choco install firefox | ||
Invoke-WebRequest -Uri "https://github.com/mozilla/geckodriver/releases/download/v0.30.0/geckodriver-v0.30.0-win64.zip" -OutFile geckodriver.zip | ||
Expand-Archive -LiteralPath geckodriver.zip -DestinationPath . | ||
Start-Process -FilePath geckodriver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters