1
0
mirror of https://github.com/BitskiCo/jwk-rs synced 2024-11-25 05:19:22 +00:00
jwk-rs/.github/workflows/ci.yml
2021-04-28 10:41:36 -05:00

75 lines
1.5 KiB
YAML

on:
push:
branches:
- master
pull_request:
branches:
- master
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}}