forked from mpeterv/argparse
-
Notifications
You must be signed in to change notification settings - Fork 16
54 lines (40 loc) · 1.19 KB
/
ci.yml
File metadata and controls
54 lines (40 loc) · 1.19 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
name: CI
on:
push:
branches: master
pull_request:
branches: '*'
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1", "5.2", "5.3", "5.4", "5.5", "luajit", "luajit-openresty"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@master
- uses: ilammy/msvc-dev-cmd@v1
if: ${{ runner.os == 'Windows' && !startsWith(matrix.luaVersion, 'luajit') }}
- uses: luarocks/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: luarocks/gh-actions-luarocks@master
- name: Lint development rockspec
run: luarocks lint "argparse-scm-2.rockspec"
- name: Install busted
run: luarocks install busted
- name: Install cluacov
run: luarocks install cluacov
- name: Install luacheck
run: luarocks install luacheck
- name: Run luacheck
run: luacheck src spec
- name: Run tests
run: busted -c
- name: Run code coverage
run: luacov
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}