Skip to content

Commit

Permalink
Merge branch 'main' into 7-server-argument-parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulCHANDER25 authored May 20, 2024
2 parents aa4c913 + e00dfab commit 66bf6d6
Show file tree
Hide file tree
Showing 14 changed files with 713 additions and 10 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ name: 'coding-style'

on:
push:
branches:
- main
- master
branches: [ main, master ]
paths:
- 'server/**'
- 'gui/Makefile'
- 'Makefile'
- 'ai/Makefile'
pull_request:
branches:
- main
- master
branches: [ main, master ]
paths:
- 'server/**'
- 'gui/Makefile'
- 'Makefile'
- 'ai/Makefile'

jobs:
check_coding_style:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "Rust ci"
on:
push:
branches: [ main, master ]
paths:
- 'ai/**'
- 'Cargo.*'
- build.rs
pull_request:
branches: [ main, master ]
paths:
- 'ai/**'
- 'Cargo.*'
- build.rs

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: --deny warnings

jobs:
unit-tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
rust: [stable]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- run: rustup toolchain install ${{ matrix.rust }} --profile minimal
- uses: Swatinem/rust-cache@v2

- name: Install cargo-hack
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 5
command: cargo install cargo-hack

- name: Run rustfmt checks
run: cargo fmt --check

- name: Run clippy lints
run: cargo clippy -- -D warnings

- name: Run unit tests
run: cargo hack test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ zappy_gui
coding-style-reports.log
.cache
compile_commands.json
.clang-format
.clang-format
Empty file added doc/.gitkeep
Empty file.
Loading

0 comments on commit 66bf6d6

Please sign in to comment.