chore: Sync to 6c3a07511537fba884b8ed5dbbd5b52aa877278b on Urist; Rel… #115
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: | |
- 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 |