Skip to content

feature: Core trading logic! Can accept and make offers! #98

feature: Core trading logic! Can accept and make offers!

feature: Core trading logic! Can accept and make offers! #98

Workflow file for this run

name: Run Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
BYOND_MAJOR: "514"
BYOND_MINOR: "1584"
SPACEMAN_DMM_VERSION: suite-1.5
jobs:
DreamChecker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Cache
uses: actions/cache@v2
with:
path: $HOME/spaceman_dmm/$SPACEMAN_DMM_VERSION
key: ${{ runner.os }}-spacemandmm-${{ env.SPACEMAN_DMM_VERSION }}
- name: Install Dreamchecker
run: |
chmod +x ./scripts/install-spaceman-dmm.sh
./scripts/install-spaceman-dmm.sh dreamchecker
- name: Run Dreamchecker
run: |
cd GOAI
~/dreamchecker
- 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
# Code:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Setup Cache
# uses: actions/cache@v2
# 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: |
# cd GOAI
# 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-latest
# strategy:
# matrix:
# map_path: [combatmap_doorland_abstractai]
# fail-fast: false
# steps:
# - uses: actions/checkout@v2
# - name: Setup Cache
# uses: actions/cache@v2
# 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: |
# cd GOAI
# 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