Adds: CI tests & badges (#2)

add CI tests
master
shivajiva101 2021-12-11 22:09:50 +00:00 committed by GitHub
parent eb31b4ab55
commit 84bf1e320d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 1 deletions

11
.github/workflows/check-release.yml vendored Normal file
View File

@ -0,0 +1,11 @@
on: [push, pull_request]
name: Check & Release
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: lint
uses: Roang-zero1/factorio-mod-luacheck@master
with:
luacheckrc_url: https://raw.githubusercontent.com/shivajiva101/weather/master/.luacheckrc

9
.luacheckrc Normal file
View File

@ -0,0 +1,9 @@
unused_args = false
allow_defined_top = true
read_globals = {
"minetest",
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
"vector", "default",
}

View File

@ -1,4 +1,7 @@
# Weather
[![Build status](https://github.com/shivajiva101/sban/workflows/Check%20&%20Release/badge.svg)](https://github.com/shivajiva101/weather/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
This mod provides diverse weather for mapgen v5, v7 and a somewhat simpler weather for v6.
The reason v6 maps are handled differently is due to the inability to detect the current biome of a players position, v6 maps report 'default' for every biome.
@ -41,4 +44,4 @@ Works with MT/MTG 5.0.0+.
## Issues, features, suggestions & bugfixes
Report bugs or suggest ideas by [creating an issue](https://github.com/shivajiva101/weather/issues/new).
If you know how to fix an issue, or want something to be added, consider opening a [pull request](https://github.com/shivajiva101/weather/compare).
If you know how to fix an issue, or want something to be added, consider opening a [pull request](https://github.com/shivajiva101/weather/compare).