Накопительное обновление [THIS IS NOT BUG! - EDITION] #1146
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 | |
- remastered_new_dev_proxima_2022_gold_edition | |
pull_request: | |
branches: | |
- dev | |
- remastered_new_dev_proxima_2022_gold_edition | |
env: | |
BYOND_MAJOR: "514" | |
BYOND_MINOR: "1589" | |
SPACEMAN_DMM_VERSION: suite-1.7.2 | |
jobs: | |
DreamChecker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Setup Cache | |
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed | |
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 | |
id: runDreamchecker | |
run: ~/dreamchecker > ${GITHUB_WORKSPACE}/output-annotations.txt 2>&1 | |
- name: Annotate Lints | |
if: ${{ failure() && steps.runDreamchecker.outcome == 'failure' }} | |
uses: yogstation13/DreamAnnotate@v1 | |
with: | |
outputFile: output-annotations.txt | |
Code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Setup Cache | |
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed | |
with: | |
path: $HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR} | |
key: ${{ runner.os }}-byond-${{ env.BYOND_MAJOR }}-${{ env.BYOND_MINOR }} | |
- 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-latest | |
strategy: | |
matrix: | |
map_path: [example, torch, away_sites_testing] | |
steps: | |
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 | |
- name: Setup Cache | |
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed | |
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 |