Skip to content

Use backend-build-workflows workflow for rust jobs #507

Use backend-build-workflows workflow for rust jobs

Use backend-build-workflows workflow for rust jobs #507

Workflow file for this run

name: Rust workflow
# Trigger the CI on any tags, pushes to any branch and PRs to any branch.
on:
push:
branches: [ "main" ]
tags: [ "*" ]
pull_request:
branches: [ "*" ]
env:
CARGO_TERM_COLOR: always
# Make sure there is no pipeline running uselessly.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Defined CI jobs.
jobs:
simple-checks:
container: docker-oss.nexus.famedly.de/rust-container:nightly
runs-on: ubuntu-latest
steps:
- name: Checkout current repository
uses: actions/checkout@v4
- uses: famedly/backend-build-workflows/.github/actions/rust-prepare@main
with:
gitlab_ssh: ${{ secrets.CI_SSH_PRIVATE_KEY}}
gitlab_user: ${{ secrets.GITLAB_USER }}
gitlab_pass: ${{ secrets.GITLAB_PASS }}
- name: Caching
uses: Swatinem/rust-cache@68b3cb7503c78e67dae8373749990a220eb65352
with:
cache-on-failure: true
cache-all-crates: true
- name: Rustfmt
shell: bash
run: cargo +${NIGHTLY_VERSION} fmt -- --check
- name: Clippy
shell: bash
run: cargo +${NIGHTLY_VERSION} clippy --workspace --all-targets -- -D warnings
- name: Doc-test
shell: bash
run: cargo +${NIGHTLY_VERSION} test --doc --workspace --verbose
- name: Udeps
shell: bash
run: cargo +${NIGHTLY_VERSION} udeps
- name: Typos
shell: bash
run: typos --exclude '*.key' --exclude '*.crt' --exclude '*.csr' --exclude '*.srl'
tests:
uses: famedly/backend-build-workflows/.github/workflows/rust-workflow.yml@ca7b1ce0ecae9cb495f320e47d687f210a66cdda
with:
secrets: inherit

Check failure on line 63 in .github/workflows/rust-workflow.yml

View workflow run for this annotation

GitHub Actions / Rust workflow

Invalid workflow file

The workflow is not valid. .github/workflows/rust-workflow.yml (Line: 63, Col: 16): Invalid input, secrets is not defined in the referenced workflow. .github/workflows/rust-workflow.yml (Line: 61, Col: 11): Secret CODECOV_TOKEN is required, but not provided while calling.