mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-04 19:02:07 +01:00
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
name: CI
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
env:
|
|
BASENAME: "vorestation"
|
|
|
|
jobs:
|
|
file_tests:
|
|
name: Run Linters
|
|
runs-on: ubuntu-16.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Ensure +x on CI directory
|
|
run: |
|
|
chmod -R +x ./tools/ci
|
|
- name: Install Tools
|
|
run: |
|
|
bash tools/ci/install_build_deps.sh
|
|
- name: Run Tests
|
|
run: |
|
|
tools/ci/validate_files.sh
|
|
tools/ci/build_tgui.sh
|
|
|
|
unit_tests:
|
|
name: Integration Tests
|
|
runs-on: ubuntu-16.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Ensure +x on CI directory
|
|
run: |
|
|
chmod -R +x ./tools/ci
|
|
- name: Setup Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: $HOME/BYOND
|
|
key: ${{ runner.os }}-byond
|
|
- name: Install RUST_G Dependencies
|
|
run: |
|
|
sudo dpkg --add-architecture i386
|
|
sudo apt update || true
|
|
sudo apt install libc6:i386 libgcc1:i386 libstdc++6:i386 libssl1.0.0:i386 g++-7 g++-7-multilib gcc-multilib zlib1g:i386
|
|
ldd librust_g.so
|
|
- name: Unit Tests
|
|
run: |
|
|
tools/ci/install_byond.sh
|
|
tools/ci/compile_and_run.sh
|
|
env:
|
|
TEST_DEFINE: "UNIT_TEST"
|
|
TEST_FILE: "code/_unit_tests.dm"
|
|
RUN: "1"
|
|
- name: Compile POIs (no run)
|
|
run: |
|
|
tools/ci/install_byond.sh
|
|
tools/ci/compile_and_run.sh
|
|
env:
|
|
TEST_DEFINE: "MAP_TEST"
|
|
TEST_FILE: "code/_map_tests.dm"
|
|
RUN: "0"
|
|
- name: Compile away missions (no run)
|
|
run: |
|
|
tools/ci/install_byond.sh
|
|
tools/ci/compile_and_run.sh
|
|
env:
|
|
TEST_DEFINE: "AWAY_MISSION_TEST"
|
|
TEST_FILE: "code/_away_mission_tests.dm"
|
|
RUN: "0"
|