Skip to content

Bump strum_macros from 0.23.1 to 0.25.2 #1220

Bump strum_macros from 0.23.1 to 0.25.2

Bump strum_macros from 0.23.1 to 0.25.2 #1220

Workflow file for this run

name: CI
on:
push:
branches:
- main
paths:
- iapyx/**
- integration-tests/**
- vitup/**
- Cargo.*
- '!**.md'
- .github/workflows/test.yml
pull_request:
paths:
- iapyx/**
- integration-tests/**
- vitup/**
- Cargo.*
- '!**.md'
- .github/workflows/test.yml
jobs:
cache_info:
name: Bootstrap cache
runs-on: ubuntu-latest
outputs:
crates-io-index-head: ${{ steps.ls-crates-io-index.outputs.head }}
cargo-lock-hash: ${{ steps.hash-cargo-lock.outputs.hash }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- id: ls-crates-io-index
name: Get head commit hash of crates.io registry index
run: |
commit=$(
git ls-remote --heads https://github.com/rust-lang/crates.io-index.git master |
cut -f 1
)
echo "$commit"
echo "::set-output name=head::$commit"
- id: hash-cargo-lock
name: Calculate dependency cache key
run: |
hash=$(
ci/strip-own-version-from-cargo-lock.pl Cargo.lock |
sha1sum | cut -d ' ' -f 1
)
echo "$hash"
echo "::set-output name=hash::$hash"
update_deps:
name: Update dependencies
needs: cache_info
# Caches on Windows and Unix do not interop:
# https://github.com/actions/cache/issues/330#issuecomment-637701649
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Cache cargo registry index
uses: actions/cache@v2
with:
path: ~/.cargo/registry/index
key: cargo-index-${{ needs.cache_info.outputs.crates-io-index-head }}
restore-keys: cargo-index-
- id: cargo-deps
name: Cache cargo dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-deps-v1-${{ needs.cache_info.outputs.cargo-lock-hash }}
- name: Check out the repository
uses: actions/checkout@v2
with:
submodules: true
- name: Fetch dependencies and update cargo registry
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
build_disruption_mock:
name: Build disruption mock
needs: [cache_info, update_deps]
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
default: true
components: rustfmt, clippy
- name: Checkout code
uses: actions/checkout@v2
- name: Build the tagged Docker image
run: |
cd /home/runner/work/vit-testing/vit-testing/vitup/docker/mock/
docker build . --file Dockerfile --tag mock
build_local_mock:
name: Build local mock
needs: [cache_info, update_deps]
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Checkout code
uses: actions/checkout@v2
- name: Build the tagged Docker image
run: |
cd /home/runner/work/vit-testing/vit-testing/vitup/docker/demo/
docker build . --file Dockerfile --tag demo
lints:
name: Lints
needs: [cache_info, update_deps]
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Checkout code
uses: actions/checkout@v2
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Restore cargo registry index
uses: actions/cache@v2
with:
path: ~/.cargo/registry/index
key: cargo-index-${{ needs.cache_info.outputs.crates-io-index-head }}
- name: Restore cargo dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry/cache
~/.cargo/git/db
key: cargo-deps-v1-${{ needs.cache_info.outputs.cargo-lock-hash }}
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
test_coverage:
name: Test Coverage
needs: update_deps
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Restore cargo registry index
uses: actions/cache@v2
with:
path: ~/.cargo/registry/index
key: cargo-index-v2-${{ needs.update_deps.outputs.crates-io-index-head }}
- name: Restore dependency crates
uses: actions/cache@v2
with:
path: ~/.cargo/registry/cache
key: cargo-deps-v2-${{ hashFiles('Cargo.lock') }}
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
args: '--ignore-tests --out Lcov -p vitup --lib'
timeout: 3600
- name: upload to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './lcov.info'