Skip to content

Initial version of CI/CD #40

Initial version of CI/CD

Initial version of CI/CD #40

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
CONTAINER_REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
CONTAINER_IMAGE_NAME: ${{ vars.CONTAINER_IMAGE_NAME }}
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ env.CONTAINER_REGISTRY }}/${{ env.CONTAINER_IMAGE_NAME }}:latest

Check failure on line 18 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / Rust

Invalid workflow file

The workflow is not valid. .github/workflows/rust.yml (Line: 18, Col: 14): Unrecognized named-value: 'env'. Located at position 1 within expression: env.CONTAINER_REGISTRY
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0
- name: Build
run: cargo build --all-features --verbose
- name: Run tests
run: cargo test --all-features --verbose
- name: Audit
run: cargo audit
- name: Check rust version in Cargo.toml
run: cargo msrv verify -- cargo check --all-features --tests
- name: Lint
run: cargo clippy -- -D warnings
- name: Build release
run: cargo build --release --verbose