diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6b75c422d2..b103ff36310 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/test/run-save-test.sh b/test/run-save-test.sh new file mode 100755 index 00000000000..806c66269c6 --- /dev/null +++ b/test/run-save-test.sh @@ -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!" \ No newline at end of file