Skip to content

initial commit

initial commit #2

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_BINSTALL_VERSION: '1.1.0'
CARGO_TARPAULIN_VERSION: '0.31.2'
jobs:
setup:
name: Setup Environment
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@4.0.0
with:
path: |
~/.cargo/bin/
key: ${{ runner.os }}-cargo-tools-${{ join( [$CARGO_BINSTALL_VERSION, $CARGO_TARPAULIN_VERSIN0, '-'])}}

Check failure on line 28 in .github/workflows/ci-workflow.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci-workflow.yml (Line: 28, Col: 16): Unexpected symbol: '['. Located at position 7 within expression: join( [$CARGO_BINSTALL_VERSION, $CARGO_TARPAULIN_VERSIN0, '-'])
- name: Install Cargo dependencies
run: |
cargo install cargo-binstall --version $CARGO_BINSTALL_VERSION || true
cargo binstall cargo-tarpaulin --version $CARGO_TARPAULIN_VERSION || true
- name: Run cargo-fmt
run: cargo fmt --all --check
- name: Run cargo-clippy
run: cargo clippy
- name: Run cargo-tarpaulin
run: cargo tarpaulin --out Xml --timeout 180
- name: Upload Code coverage
uses: actions/uplaod-artifact@4
with:
name: code-coverage-report
path: cobertura.xml