-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (68 loc) · 2 KB
/
build.yml
File metadata and controls
70 lines (68 loc) · 2 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
permissions: { }
runs-on: ubuntu-24.04
strategy:
matrix:
lua:
- "5.1"
- "5.2"
- "5.3"
- "5.4"
- "luajit-2.1"
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
persist-credentials: false
- name: Cache Dependencies
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306
with:
path: |
.lua/
.luarocks/
key: ${{ runner.os }}-${{ matrix.lua }}-${{ hashFiles('.github/workflows/build.yml') }}
- name: Setup Lua
uses: leafo/gh-actions-lua@8c9e175e7a3d77e21f809eefbee34a19b858641b
if: steps.cache.outputs.cache-hit != 'true'
with:
luaVersion: ${{ matrix.lua }}
- name: Setup LuaRocks
uses: leafo/gh-actions-luarocks@97053c556d6ce2c8e26eb7ac93743437c7af7248
- name: Dependencies
run: |-
luarocks install --only-deps $(find luarocks -name '*-scm-*.rockspec' | sort -g | tail -1)
luarocks install dromozoa-utf8
luarocks install cluacov
luarocks install busted
luarocks install luacov-coveralls
- name: Test
run: |-
timeout 120 busted -c
- name: Coverage Report
run: |
luacov-coveralls --dryrun -e '.luarocks/' -e spec/ -e luarocks/ -i wcwidth/ -i wcwidth.lua -o coveralls.json -v
- name: Report Coverage
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
with:
parallel: true
file: coveralls.json
finish:
name: Aggregate Coverage
permissions: { }
runs-on: ubuntu-24.04
needs: [build]
if: ${{ always() }}
steps:
- uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
with:
parallel-finished: true