mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-11 10:08:00 -06:00
Compare commits
22 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5deccc54a7 | ||
|
|
2455d9724b | ||
|
|
ac7c1b9ce1 | ||
|
|
d68d76c854 | ||
|
|
f1927cc67e | ||
|
|
68ab4627d8 | ||
|
|
0d8d869580 | ||
|
|
a31b85b5df | ||
|
|
21b08d4866 | ||
|
|
f075caaa17 | ||
|
|
9422168ffc | ||
|
|
35e557e298 | ||
|
|
e810419063 | ||
|
|
f7e7dee28f | ||
|
|
4b0b8f4f2e | ||
|
|
03249c88a4 | ||
|
|
2d4f97e04b | ||
|
|
317fce796c | ||
|
|
9832abd131 | ||
|
|
c94ebc6b4b | ||
|
|
8b23c1c7bd | ||
|
|
5e325a4691 |
36
.github/workflows/coverage.yaml
vendored
36
.github/workflows/coverage.yaml
vendored
@@ -9,6 +9,8 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
@@ -52,5 +54,35 @@ jobs:
|
|||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
files: ./lcov.info
|
files: lcov.info
|
||||||
disable_search: true
|
|
||||||
|
- name: Download Coveralls CLI
|
||||||
|
if: ${{ env.COVERALLS_REPO_TOKEN != '' }}
|
||||||
|
run: |
|
||||||
|
# use GitHub Releases URL instead of coveralls.io because they can't maintain their own files; it 404s
|
||||||
|
curl -L https://github.com/coverallsapp/coverage-reporter/releases/download/v0.6.15/coveralls-linux-x86_64.tar.gz | tar -xz -C /usr/local/bin
|
||||||
|
|
||||||
|
- name: Upload coverage to Coveralls
|
||||||
|
if: ${{ env.COVERALLS_REPO_TOKEN != '' }}
|
||||||
|
run: |
|
||||||
|
if [ ! -f "lcov.info" ]; then
|
||||||
|
echo "Error: lcov.info file not found. Coverage generation may have failed."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
for i in {1..10}; do
|
||||||
|
echo "Attempt $i: Uploading coverage to Coveralls..."
|
||||||
|
if coveralls -n report lcov.info; then
|
||||||
|
echo "Successfully uploaded coverage report."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $i -lt 10 ]; then
|
||||||
|
delay=$((2**i))
|
||||||
|
echo "Attempt $i failed. Retrying in $delay seconds..."
|
||||||
|
sleep $delay
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Failed to upload coverage report after 10 attempts."
|
||||||
|
exit 1
|
||||||
|
|||||||
17
codecov.yml
17
codecov.yml
@@ -1,17 +0,0 @@
|
|||||||
coverage:
|
|
||||||
status:
|
|
||||||
project:
|
|
||||||
default:
|
|
||||||
target: 70%
|
|
||||||
patch:
|
|
||||||
default:
|
|
||||||
informational: true
|
|
||||||
|
|
||||||
ignore:
|
|
||||||
- "src/(?:bin|platform))/.+\\.rs"
|
|
||||||
- "src/(?:app|events|formatter)\\.rs"
|
|
||||||
|
|
||||||
comment:
|
|
||||||
layout: "reach,diff,flags,files,footer"
|
|
||||||
behavior: default
|
|
||||||
require_changes: false
|
|
||||||
@@ -266,7 +266,7 @@ pub fn debug_render_system(
|
|||||||
}
|
}
|
||||||
|
|
||||||
canvas.set_draw_color(Color {
|
canvas.set_draw_color(Color {
|
||||||
a: f32_to_u8(0.65),
|
a: f32_to_u8(0.6),
|
||||||
..Color::RED
|
..Color::RED
|
||||||
});
|
});
|
||||||
canvas.set_blend_mode(sdl2::render::BlendMode::Blend);
|
canvas.set_blend_mode(sdl2::render::BlendMode::Blend);
|
||||||
|
|||||||
Reference in New Issue
Block a user