Skip to content

CI

CI #570

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 0 * * *'
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install latest stable
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Build no_std
run: cargo build --verbose --no-default-features
- name: Build use_std
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run doctests
if: success() || failure()
run: cargo test --doc
- uses: actions-rs/clippy-check@v1
if: success() || failure()
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings
- name: Upload test results
if: always()
uses: actions/upload-artifact@v2
with:
name: nextest
path: target/nextest/ci/junit.xml
report:
name: "Publish Test Results"
needs: build
runs-on: ubuntu-latest
if: always()
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
junit_files: artifacts/**/*.xml