Skip to content

Commit

Permalink
adjust rust workflow, show build/test success badge and test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Zitronenjoghurt committed Aug 12, 2024
1 parent fe7d7df commit 31f6e72
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,38 @@ name: Rust

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: |
- uses: actions/checkout@v4
- name: Build
run: |
cd rust/main_logic
cargo build --verbose
- name: Run tests
run: |
- name: Run tests
run: |
cd rust/main_logic
cargo test --verbose
- name: Install tarpaulin
run: cargo install cargo-tarpaulin
- name: Run tarpaulin
run: |
cd rust/main_logic
cargo tarpaulin --out Xml --output-dir ../../
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./cobertura.xml
flags: unittests
verbose: true
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
![Rust](https://github.com/Zitronenjoghurt/LastColony/actions/workflows/rust.yml/badge.svg)
[![codecov](https://codecov.io/gh/Zitronenjoghurt/LastColony/branch/main/graph/badge.svg)](https://codecov.io/gh/Zitronenjoghurt/LastColony)

# LastColony
Last Colony is my 4th Godot project and was heavily inspired by Final Earth 2. This will be the first time I will use my own pixel art and Threading in Godot.

0 comments on commit 31f6e72

Please sign in to comment.