From 7b7614432952e8e01191421c51a7e8b502c5606a Mon Sep 17 00:00:00 2001 From: Louis Royer Date: Tue, 21 Jun 2022 13:39:54 +0200 Subject: [PATCH] Update to github action - Move repository to https://github.com/louisroyer-minetest/toolranks-extras --- .gitattributes | 5 +++++ .github/dependabot.yml | 7 +++++++ .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ README.md | 4 ++-- 5 files changed, 44 insertions(+), 20 deletions(-) create mode 100644 .gitattributes create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f465847 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +.gitattributes export-ignore +.gitignore export-ignore +.github export-ignore +.pre-commit-config.yaml export-ignore +.luacheckrc export-ignore diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..2c7d170 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8056e2d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + luacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Luacheck linter + uses: lunarmodules/luacheck@v0 + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 'pypy3.9' + - uses: pre-commit/action@v3.0.0 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 860a5b5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: python -sudo: false -addons: - apt: - packages: - - luarocks -cache: - timeout: 1000 - directories: - - $HOME/.luarocks -before_install: - - luarocks install --local luacheck - - pip3 install pre-commit -script: - - pre-commit run --all-files - - $HOME/.luarocks/bin/luacheck . -notifications: - email: false diff --git a/README.md b/README.md index 3d16ef6..3ba9d9d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# minetest-toolranks-extras +# Toolranks Extras -[![Build Status](https://travis-ci.org/louisroyer/minetest-toolranks-extras.svg?branch=master)](https://travis-ci.org/louisroyer/minetest-toolranks-extras) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/title/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/downloads/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) +![Build Status](https://github.com/louisroyer-minetest/toolranks-extras/actions/workflows/main.yml/badge.svg) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/title/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) [![ContentDB](https://content.minetest.net/packages/louisroyer/toolranks_extras/shields/downloads/)](https://content.minetest.net/packages/louisroyer/toolranks_extras/) This minetest mod extends [toolranks](https://github.com/lisacvuk/minetest-toolranks). It adds support for `minetest-games`’s mods (except `default`). This mod currently adds support for hoes from `farming` mod.