forked from beyond-all-reason/Beyond-All-Reason
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.29 KB
/
Copy pathtest_unit.yml
File metadata and controls
43 lines (36 loc) · 1.29 KB
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
33
34
35
36
37
38
39
40
41
42
43
name: Run Unit Tests
on:
push:
branches: ['**'] # needs to tolerate a slash but not run on tag pushes
pull_request:
branches: ['**'] # needs to tolerate a slash but not run on tag pushes
jobs:
busted:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Lua 5.1
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends lua5.1 liblua5.1-0-dev
- name: Install Lux
env:
LUX_VERSION: '0.28.3'
run: |
# Fetch the prebuilt `lx` straight from the release page. Resolving
# it through cargo-binstall (or the lux action) goes via the GitHub
# API, which sporadically rate-limits unauthenticated runners;
# release downloads don't count against that limit.
curl -L --proto '=https' --tlsv1.2 -sSf \
"https://github.com/nvim-neorocks/lux/releases/download/v${LUX_VERSION}/lx-x86_64-unknown-linux-gnu.tar.gz" \
| sudo tar -xz -C /usr/local/bin lx
lx --version
- name: Cache Lux dependencies
uses: actions/cache@v4
with:
path: .lux
key: lux-5.1-${{ runner.os }}-${{ hashFiles('lux.lock') }}
restore-keys: |
lux-5.1-${{ runner.os }}-
- name: Run busted
run: lx --lua-version 5.1 test