ci: add CI runner for pull_request
(#111)
#31
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
on: | |
push: | |
branches: [master, main] | |
paths: | |
- "humphrey-json/**" | |
- "humphrey-json-derive/**" | |
- ".github/workflows/spec.yml" | |
pull_request: | |
branches: [master, main] | |
paths: | |
- "humphrey-json/**" | |
- "humphrey-json-derive/**" | |
- ".github/workflows/spec.yml" | |
name: JSON Specification Compliance | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
name: Test Specification Compliance | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v2 | |
- name: Install stable toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- name: Run cargo test | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: -p humphrey_json spec -- --ignored |