Skip to content

Commit

Permalink
Update test runners
Browse files Browse the repository at this point in the history
  • Loading branch information
S-S-X authored Jan 15, 2025
1 parent 801233e commit a2e1cb1
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 12 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
on: [push, pull_request]
name: luacheck

on: [push, pull_request]

jobs:
lint:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: ""
- name: Checkout
uses: actions/checkout@master
- name: Luacheck
uses: lunarmodules/luacheck@master
51 changes: 47 additions & 4 deletions .github/workflows/mineunit.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,56 @@

name: mineunit

on: [push, pull_request]

jobs:
build:
mineunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mt-mods/mineunit-actions@badger

- id: mineunit
uses: mt-mods/mineunit-actions@master
with:
badge-label: Test coverage

- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit.outputs.badge-name }}"
LABEL: "${{ steps.mineunit.outputs.badge-label }}"
STATUS: "${{ steps.mineunit.outputs.badge-status }}"
COLOR: "${{ steps.mineunit.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: KeisukeYamashita/create-comment@v1
if: success() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
check-only-first-line: true
comment: |
<details><summary><i>Click for detailed source code test coverage report</i></summary>
### Mineunit test coverage is ${{ steps.mineunit.outputs.coverage-total }} in ${{ steps.mineunit.outputs.coverage-files }} files:
```
File Hits Missed Coverage
--------------------------------------------------------------
${{ steps.mineunit.outputs.mineunit-report }}
```
### Mineunit test logs:
```
${{ steps.mineunit.outputs.mineunit-stdout }}
```
</details>
- uses: KeisukeYamashita/create-comment@v1
if: failure() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
badge-secret: ${{ secrets.MineunitBadgesAPIKey }}
check-only-first-line: true
comment: |
<details><summary><i>Mineunit tests failed, click for details</i></summary>
### Mineunit test logs:
```
${{ steps.mineunit.outputs.mineunit-stdout }}
```
</details>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![luacheck](https://github.com/S-S-X/qos/workflows/luacheck/badge.svg)
![mineunit](https://github.com/S-S-X/qos/workflows/mineunit/badge.svg)
![coverage](https://mineunit-badges.000webhostapp.com/S-S-X/qos/coverage)
![coverage](https://byob.yarr.is/S-S-X/qos/coverage)
[![ContentDB](https://content.minetest.net/packages/-SX-/qos/shields/downloads/)](https://content.minetest.net/packages/-SX-/qos/)

## Minetest HTTP API QoS control queue
Expand Down

0 comments on commit a2e1cb1

Please sign in to comment.