1
0
mirror of https://github.com/BitskiCo/jwk-rs synced 2024-11-24 21:09:22 +00:00
jwk-rs/.github/workflows/ci.yml
2021-01-25 22:14:44 +03:00

69 lines
1.4 KiB
YAML

on: push
name: CI
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --profile test -- -D warnings
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Build (release)
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features --release
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/tarpaulin@v0.1
- uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}