Skip to content

add ci test in github actions #1

add ci test in github actions

add ci test in github actions #1

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
os: ubuntu-latest

Check failure on line 11 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 11, Col: 13): Unexpected value 'ubuntu-latest'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: cargo build
run: cargo build
- name: cargo test
run: cargo test
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
run: cargo clippy -- -D warnings