Skip to content

Fix signed timezone (in converter), speed up tests (+ 3 timezone to t… #31

Fix signed timezone (in converter), speed up tests (+ 3 timezone to t…

Fix signed timezone (in converter), speed up tests (+ 3 timezone to t… #31

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
RUST_VERSION: 1.67.0
CARGO_TERM_COLOR: always
jobs:
Dependency-audit:
strategy:
matrix:
runs-on:
- ubuntu-latest
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Audit dependencies
uses: EmbarkStudios/cargo-deny-action@v1
Run-tests:
name: Run test and upload coverage report
needs:
- Dependency-audit
strategy:
matrix:
runs-on:
- ubuntu-latest
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set minimal supported Rust version
run: |
rustup default ${RUST_VERSION}
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Remove artifacts that may affect the coverage results of packages
run: |
cargo llvm-cov clean --workspace
- name: Run tests and generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: lcov.info
flags: unittests
name: PHASEXave
verbose: true
Test-tools:
needs:
- Dependency-audit
- Run-tests
strategy:
matrix:
runs-on:
- macOS-13
- macOS-12
- macOS-11
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set minimal supported Rust version
run: |
rustup default ${RUST_VERSION}
- name: Build
run: |
cargo build --release --bin date-cli
cargo build --release --bin calendar-cli
- name: Date CLI
run: |
cargo run --release --quiet --bin date-cli -- -v 1
cargo run --release --quiet --bin date-cli -- -v 2
cargo run --release --quiet --bin date-cli -- -v 3
- name: Calendar CLI
run: |
cargo run --release --quiet --bin calendar-cli -- -v 1
cargo run --release --quiet --bin calendar-cli -- -v 2
cargo run --release --quiet --bin calendar-cli -- -v 3