Rewriting the ability system. #14329
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
push: | |
branches: | |
- dev | |
- stable | |
- staging | |
pull_request: | |
branches: | |
- dev | |
- stable | |
- staging | |
workflow_dispatch: | |
env: | |
BYOND_MAJOR: "515" | |
BYOND_MINOR: "1643" | |
SPACEMAN_DMM_VERSION: suite-1.8 | |
jobs: | |
DreamChecker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION | |
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }} | |
- name: Install Dreamchecker | |
run: scripts/install-spaceman-dmm.sh dreamchecker | |
- name: Run Dreamchecker | |
run: | | |
set -o pipefail | |
~/dreamchecker 2>&1 | tee ${GITHUB_WORKSPACE}/output-annotations.txt | |
- name: Annotate Lints | |
uses: yogstation13/DreamAnnotate@v2 | |
if: always() | |
with: | |
outputFile: output-annotations.txt | |
- name: Run Failure Webhook | |
env: | |
JOB_STATUS: ${{ job.status }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
HOOK_OS_NAME: ${{ runner.os }} | |
WORKFLOW_NAME: ${{ github.workflow }} | |
if: ${{ failure() }} | |
run: | | |
wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh | |
chmod +x send.sh | |
./send.sh failure $WEBHOOK_URL | |
OpenDream: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Python setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION | |
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }} | |
- name: Install OpenDream | |
uses: robinraju/[email protected] | |
with: | |
repository: "OpenDreamProject/OpenDream" | |
tag: "latest" | |
fileName: "DMCompiler_linux-x64.tar.gz" | |
extract: true | |
- name: Run OpenDream | |
run: ./DMCompiler_linux-x64/DMCompiler nebula.dme --suppress-unimplemented --skip-anything-typecheck --version=${BYOND_MAJOR}.${BYOND_MINOR} | python tools/od_annotator/__main__.py "$@" | |
Code: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR} | |
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }} | |
- name: Install Dependencies | |
run: sudo apt-get install -y uchardet | |
- name: Run Tests | |
env: | |
TEST: CODE | |
run: test/run-test.sh | |
- name: Run Failure Webhook | |
env: | |
JOB_STATUS: ${{ job.status }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
HOOK_OS_NAME: ${{ runner.os }} | |
WORKFLOW_NAME: ${{ github.workflow }} | |
if: ${{ failure() }} | |
run: | | |
wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh | |
chmod +x send.sh | |
./send.sh failure $WEBHOOK_URL | |
Maps: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
map_path: [example, tradeship, exodus, ministation, shaded_hills, away_sites_testing, modpack_testing, planets_testing] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR} | |
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }} | |
- name: Run Tests | |
env: | |
TEST: MAP | |
MAP_PATH: ${{ matrix.map_path }} | |
run: test/run-test.sh | |
- name: Run Failure Webhook | |
env: | |
JOB_STATUS: ${{ job.status }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
HOOK_OS_NAME: ${{ runner.os }} | |
WORKFLOW_NAME: ${{ github.workflow }} | |
if: ${{ failure() }} | |
run: | | |
wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh | |
chmod +x send.sh | |
./send.sh failure $WEBHOOK_URL |