Skip to content

tests: fix goldenscript line numbers #44

tests: fix goldenscript line numbers

tests: fix goldenscript line numbers #44

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
# Run tests and clippy/rustfmt checks.
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.77.0
id: toolchain
with:
components: clippy, rustfmt
- uses: actions/cache@v4
with:
path: target
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}}
- run: cargo build --tests
- run: cargo test
- run: cargo clippy --tests --no-deps -- -D warnings
- run: cargo fmt --check
# Verify that minimal dependency versions also pass tests.
versions:
name: Minimal Dependency Versions
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
id: toolchain
- uses: actions/cache@v4
with:
path: target
key: ${{runner.os}}-target-${{steps.toolchain.outputs.cachekey}}-${{hashFiles('Cargo.lock')}}
- run: cargo +stable install cargo-hack --locked
- run: cargo +stable install cargo-minimal-versions --locked
- run: cargo minimal-versions check --direct
- run: cargo minimal-versions build --tests --direct
- run: cargo minimal-versions test --direct