Skip to content

Commit e539aaa

Browse files
authored
Migrate CI from CircleCI 1.0 to GitHub Actions (#39)
1 parent 9ebdc11 commit e539aaa

File tree

2 files changed

+43
-24
lines changed

2 files changed

+43
-24
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is the GitHub Actions configuration file to enable CI tests
2+
# It installs Lua, LuaRocks and LuaFileSystem, lsqlite3, luasocket and luasec on the CI worker, then downloads the Gallery plugin and the AutoAPI descriptions
3+
# Finally it runs the Checker on the Gallery plugin
4+
5+
name: CI
6+
7+
on: [push, pull_request]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
repository: cuberite/CuberitePluginChecker
17+
fetch-depth: 0
18+
19+
# Sets up lua
20+
- name: Install Lua
21+
run: |
22+
sudo apt install lua5.1 luarocks libsqlite3-dev
23+
sudo luarocks install luafilesystem
24+
sudo luarocks install lsqlite3
25+
sudo luarocks install luasocket
26+
sudo luarocks install luacheck
27+
28+
# Sets up the environment
29+
- name: Set up environment
30+
run: |
31+
git clone --depth=1 https://github.com/cuberite/gallery ~/Gallery
32+
wget -O ~/InfoReg.lua https://raw.githubusercontent.com/cuberite/cuberite/master/Server/Plugins/InfoReg.lua
33+
mkdir ~/AutoAPI
34+
wget -O ~/AutoAPI.zip 'https://ci.appveyor.com/api/projects/cuberite/cuberite/artifacts/AutoAPI.zip?job=Windows-x64&pr=false&branch=master'
35+
unzip ~/AutoAPI.zip -d ~/AutoAPI
36+
wget -O ~/ManualAPI.zip 'https://ci.appveyor.com/api/projects/cuberite/cuberite/artifacts/ManualAPI.zip?job=Windows-x64&pr=false&branch=master'
37+
unzip ~/ManualAPI.zip -d ~
38+
39+
# Runs the test
40+
- name: Run tests
41+
run: |
42+
lua CuberitePluginChecker.lua -p ~/Gallery -a ~/AutoAPI -e ~/ManualAPI.lua -i APIImpl/All.lua -s tests/Gallery/FuzzCommands.lua
43+
luacheck -q . --codes

circle.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)