Skip to content

Create rust.yml

Create rust.yml #10

Workflow file for this run

name: rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo build
run: .github/workflows/cargo_to_gh rustc --message-format json -- -Awarnings
check:
runs-on: ubuntu-latest
depends-on: build

Check failure on line 22 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: 22, Col: 5): Unexpected value 'depends-on' .github/workflows/rust.yml (Line: 30, Col: 5): Unexpected value 'depends-on'
steps:
- uses: actions/checkout@v4
- name: cargo check
run: .github/workflows/cargo_to_gh check
test:
runs-on: ubuntu-latest
depends-on: build
steps:
- uses: actions/checkout@v4
- name: cargo test
run: cargo test --verbose
fmt:
depends-on: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cargo fmt
run: cargo fmt --check