Skip to content

Promote try_parse_localized to a generic blanket trait (11.1.2) #1349

Promote try_parse_localized to a generic blanket trait (11.1.2)

Promote try_parse_localized to a generic blanket trait (11.1.2) #1349

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build-test:
runs-on: ${{ matrix.os }}
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
CS_ACCESS_TOKEN: ${{ secrets.CS_ACCESS_TOKEN }}
CODESCENE_CLI_SHA256: ${{ vars.CODESCENE_CLI_SHA256 }}
RUSTFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Rust
uses: leynos/shared-actions/.github/actions/setup-rust@aebb3f5b831102e2a10ef909c83d7d50ea86c332
- name: Install bun
uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2
with:
bun-version: '1.2.21'
- name: Check formatting
run: make check-fmt
- name: Install Mermaid CLI
shell: bash
run: |
set -euxo pipefail
bun install --no-progress --global @mermaid-js/mermaid-cli@11.9.0
bun x @puppeteer/browsers browsers install chrome-headless-shell
mmdc --version
- name: Setup uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
version: 'latest'
- name: Install Nixie
run: uv tool install nixie-cli@1.0.0
- name: Nixie
run: make nixie
- name: Markdown lint
uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v20
with:
globs: '**/*.md'
- name: Lint
run: make lint
- name: Test and Measure Coverage (with serde_saphyr)
uses: leynos/shared-actions/.github/actions/generate-coverage@aebb3f5b831102e2a10ef909c83d7d50ea86c332
with:
output-path: lcov.info
format: lcov
features: serde_json toml json5 yaml
artefact-name-suffix: serde-saphyr
- name: Test and Measure Coverage (without serde_saphyr)
uses: leynos/shared-actions/.github/actions/generate-coverage@aebb3f5b831102e2a10ef909c83d7d50ea86c332
with:
output-path: lcov.info
format: lcov
features: serde_json toml json5
artefact-name-suffix: no-serde-saphyr
- name: Validate PowerShell wrapper
if: ${{ matrix.os == 'windows-latest' }}
run: make powershell-wrapper-validate
- name: Publish dry run
if: ${{ github.event_name == 'workflow_dispatch' }}
run: make publish-check
- name: Upload coverage data to CodeScene
if: ${{ matrix.coverage && env.CS_ACCESS_TOKEN && vars.CODESCENE_CLI_SHA256 }}
uses: leynos/shared-actions/.github/actions/upload-codescene-coverage@aebb3f5b831102e2a10ef909c83d7d50ea86c332
with:
format: lcov
access-token: ${{ env.CS_ACCESS_TOKEN }}
installer-checksum: ${{ vars.CODESCENE_CLI_SHA256 }}