Files
battleship/.github/workflows/ci.yml
sparshg 027b875144 ci/cd
2024-09-23 23:03:28 +05:30

23 lines
372 B
YAML

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
SQLX_OFFLINE: true
jobs:
check-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy
- name: Format
run: cargo fmt --all --check