Merge pull request #429 from renderorange/switch-testing-to-github-actions

Switch testing to GitHub actions
This commit is contained in:
Alexander Savchuk 2023-04-29 19:11:28 +12:00 committed by GitHub
commit ce826d2d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 29 deletions

21
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Run tests
on:
push:
branches-ignore:
- 'gh-pages'
pull_request:
branches-ignore:
- 'gh-pages'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install shunit2
- name: Check out branch
uses: actions/checkout@v2
- name: Create the minecraft user
run: sudo adduser --system minecraft
- name: Run tests
run: sudo /bin/bash ./test.sh

View File

@ -1,23 +0,0 @@
# Use python as its the simplest language which can run a test script
language: python
before_install:
# Print out the bash version
- sudo /bin/bash --version
# Update Package Lists
- sudo apt-get -qq update
# Install dependencies
- sudo apt-get install -y shunit2
# Remove this troublesome script
- sudo rm -f /etc/profile.d/phpenv.sh
# Create a minecraft user for testing
install:
- sudo adduser --system minecraft
# Run the test script
script: sudo /bin/bash ./test.sh
branches:
only:
- master

View File

@ -1,9 +1,4 @@
# Minecraft Server Manager [![Build Status][status-img]][status] [![Donate to MSM][donate-img]][donate] # Minecraft Server Manager
[status-img]: https://api.travis-ci.org/msmhq/msm.svg?branch=master
[status]: http://travis-ci.org/msmhq/msm
[donate-img]: https://www.paypalobjects.com/en_GB/i/btn/btn_donate_SM.gif
[donate]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z7XQDNF7U5GLL
A single init script which makes running multiple Minecraft/Bukkit servers easier for us admins. A single init script which makes running multiple Minecraft/Bukkit servers easier for us admins.