Skip to content

Merge pull request #23 from PassFort/rh/fix-reqwest-host #106

Merge pull request #23 from PassFort/rh/fix-reqwest-host

Merge pull request #23 from PassFort/rh/fix-reqwest-host #106

Workflow file for this run

on: [push, pull_request]
name: CI
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all-features
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all --all-features -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all --all-features
rfc-test-suite:
name: RFC Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout test repo
uses: actions/checkout@v2
with:
repository: Diggsey/http-signatures-test-suite
path: http-signatures-test-suite
ref: 872fad28a85d2f87f042b55ed05ca7a1d43d977b
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: -p http-sig-validator --release
- run: cp http-sig-validator/config.json http-signatures-test-suite/config.json
- run: cd http-signatures-test-suite && npm install
- run: cd http-signatures-test-suite && npm test -- --inline-diffs