Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,35 @@ jobs:
wget https://raw.githubusercontent.com/DiscordHooks/github-actions-discord-webhook/master/send.sh
chmod +x send.sh
./send.sh failure $WEBHOOK_URL
Saves:
runs-on: ubuntu-latest
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-save-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
services:
db:
image: ghcr.io/persistentss13/nebula-sql:dev
ports:
# this forwards to localhost - it will not be available at "db"
- 3306:3306
6 changes: 6 additions & 0 deletions test/run-save-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

# TODO: This is a stub file! There are no tests ran as a result of this right now.

# Remember: The DB is available at localhost:3306, NOT "db:3306", so you'll need to adjust config for the differing host
echo "Hello world!"