Match the image name that was pushed to the registry (git.haxx.space/sjg/trx-rs/sdk) across the workflow, devcontainer and README. Assisted-By: Claude Code (claude-opus-4) Claude-Session: https://claude.ai/code/session_01NFpGtGTWUEYXLwZeZs2RAV Signed-off-by: Stan Grams <sjg@haxx.space>
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
# SPDX-FileCopyrightText: 2026 Stan Grams <sjg@haxx.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# CI for the Docker-executor runner (VM). The lint/test jobs run inside the
|
|
# shared trx-rs SDK image (container/Containerfile), which bakes in the pinned
|
|
# Rust toolchain and all build dependencies. The reuse job uses the upstream
|
|
# Docker action, which the Docker executor launches as a sibling container.
|
|
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
container: git.haxx.space/sjg/trx-rs/sdk:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: rustfmt
|
|
run: cargo fmt --all -- --check
|
|
- name: clippy
|
|
run: cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
container: git.haxx.space/sjg/trx-rs/sdk:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build
|
|
run: cargo build --workspace --all-targets --locked
|
|
- name: Test
|
|
run: cargo test --workspace --locked
|
|
|
|
reuse:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: fsfe/reuse-action@v5
|