-
Notifications
You must be signed in to change notification settings - Fork 2.3k
32 lines (32 loc) · 977 Bytes
/
test.yml
File metadata and controls
32 lines (32 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Run Tests
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
workflow_dispatch:
jobs:
run_tests:
runs-on: ubuntu-latest
container: ghcr.io/pathofbuildingcommunity/pathofbuilding-tests:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: busted --lua=luajit
check_modcache:
runs-on: ubuntu-latest
container: ghcr.io/pathofbuildingcommunity/pathofbuilding-tests:latest
steps:
- name: Install git dependency
run: apk add git
- name: Checkout
uses: actions/checkout@v4
- name: Regenerate ModCache
env:
LUA_PATH: ../runtime/lua/?.lua;../runtime/lua/?/init.lua
REGENERATE_MOD_CACHE: 1
run: cd src; luajit HeadlessWrapper.lua
- run: git config --global --add safe.directory $(pwd)
- name: Check if the generated ModCache is different
run: git diff --exit-code src/Data/ModCache.lua