Skip to content

Bump version to v10.3.12 #1

Bump version to v10.3.12

Bump version to v10.3.12 #1

Workflow file for this run

name: CI
on:
workflow_call:
inputs:
event_name:
required: true
type: string
repo_full_name:
required: true
type: string
push:
branches:
- '**'
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
lua-check:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install and run Luacheck
uses: nebularg/actions-luacheck@v1
with:
files: Database Localization Modules Questie.lua
args: "--no-color -q"
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}
unit-tests:
needs: lua-check
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run Unit Tests
uses: lunarmodules/busted@v2.2.0
with:
args: -p ".test.lua" .
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}
validate-era-db:
needs: unit-tests
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Validate Era database
run: |
luarocks install bit32
lua cli/validate-era.lua
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}
validate-sod-db:
needs: unit-tests
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Validate SoD database
run: |
luarocks install bit32
lua cli/validate-sod.lua
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}
# validate-tbc-db:
# needs: unit-tests
# runs-on: ubuntu-latest
# if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
#
# steps:
# - name: Checkout project
# uses: actions/checkout@v3
#
# - name: Install Lua
# uses: leafo/gh-actions-lua@v10
# with:
# luaVersion: "5.1"
#
# - name: Install Luarocks
# uses: leafo/gh-actions-luarocks@v4
#
# - name: Validate TBC database
# run: |
# luarocks install bit32
# lua cli/validate-tbc.lua
#
# - name: Send CI failure to Discord
# uses: nebularg/actions-discord-webhook@v1
# with:
# webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
# status: ${{ job.status }}
# if: ${{ failure() }}
validate-wotlk-db:
needs: unit-tests
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Validate WotLK database
run: |
luarocks install bit32
lua cli/validate-wotlk.lua
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}
validate-cata-db:
needs: unit-tests
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Install Luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Validate Cata database
run: |
luarocks install bit32
lua cli/validate-cata.lua
- name: Send CI failure to Discord
uses: nebularg/actions-discord-webhook@v1
with:
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
if: ${{ failure() }}