File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-24.04
14+ strategy :
15+ matrix :
16+ lua :
17+ - " lua 5.1"
18+ - " lua 5.2"
19+ - " lua 5.3"
20+ - " lua 5.4"
21+ - " luajit 2.0"
22+ - " luajit 2.1"
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v6
26+ - name : Cache Dependencies
27+ uses : actions/cache@v5
28+ with :
29+ path : |
30+ .lua/
31+ .luarocks/
32+ key : ${{ runner.os }}-${{ matrix.lua }}-${{ hashFiles('.github/workflows/build.yml') }}
33+ - name : Dependencies
34+ run : |-
35+ sudo apt install -y libreadline-dev
36+ pip install hererocks
37+ hererocks env --${{ matrix.lua }} -rlatest
38+ source env/bin/activate
39+ luarocks install --only-deps $(find luarocks -name '*-scm-*.rockspec' | sort -g | tail -1)
40+ luarocks install dromozoa-utf8
41+ luarocks install cluacov
42+ luarocks install busted
43+ luarocks install luacov-coveralls
44+ - name : Test
45+ run : |-
46+ source env/bin/activate
47+ timeout 120 busted -c
48+ - name : Coverage Report
49+ run : |
50+ luacov-coveralls --dryrun -e '.luarocks/' -e spec/ -e luarocks/ -i wcwidth/ -i wcwidth.lua -o coveralls.json -v
51+ - name : Coveralls
52+ uses : coverallsapp/github-action@v2
53+ with :
54+ parallel : true
55+ file : coveralls.json
56+ finish :
57+ runs-on : ubuntu-24.04
58+ needs : [build]
59+ if : ${{ always() }}
60+ steps :
61+ - uses : coverallsapp/github-action@v2
62+ with :
63+ parallel-finished : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments