Skip to content

Commit 76be386

Browse files
committed
Merge remote-tracking branch 'luarocks/refs/pull/34/head'
2 parents 27967d7 + 2c5d096 commit 76be386

3 files changed

Lines changed: 57 additions & 32 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: master
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
ci:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
luaVersion: ["5.1", "5.2", "5.3", "5.4", "5.5", "luajit", "luajit-openresty"]
16+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
17+
18+
steps:
19+
- uses: actions/checkout@master
20+
21+
- uses: ilammy/msvc-dev-cmd@v1
22+
if: ${{ runner.os == 'Windows' && !startsWith(matrix.luaVersion, 'luajit') }}
23+
24+
- uses: luarocks/gh-actions-lua@master
25+
with:
26+
luaVersion: ${{ matrix.luaVersion }}
27+
28+
- uses: luarocks/gh-actions-luarocks@master
29+
30+
- name: Lint development rockspec
31+
run: luarocks lint "argparse-scm-2.rockspec"
32+
33+
- name: Install busted
34+
run: luarocks install busted
35+
36+
- name: Install cluacov
37+
run: luarocks install cluacov
38+
39+
- name: Install luacheck
40+
run: luarocks install luacheck
41+
42+
- name: Run luacheck
43+
run: luacheck src spec
44+
45+
- name: Run tests
46+
run: busted -c
47+
48+
- name: Run code coverage
49+
run: luacov
50+
51+
- name: Upload coverage reports to Codecov
52+
uses: codecov/codecov-action@v5
53+
with:
54+
token: ${{ secrets.CODECOV_TOKEN }}

‎.travis.yml‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# argparse
22

3-
[![Build Status](https://travis-ci.org/luarocks/argparse.png?branch=master)](https://travis-ci.org/luarocks/argparse)
3+
[![CI](https://github.com/luarocks/argparse/actions/workflows/ci.yml/badge.svg)](./.github/workflows/ci.yml)
44
[![Coverage status](https://codecov.io/gh/luarocks/argparse/branch/master/graph/badge.svg)](https://codecov.io/gh/luarocks/argparse)
55

66
Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.
@@ -104,7 +104,7 @@ Did you mean '--output'?
104104

105105
### Using LuaRocks
106106

107-
Installing argparse using [LuaRocks](http://luarocks.org) is simple:
107+
Installing argparse using [LuaRocks](https://luarocks.org) is simple:
108108

109109
```bash
110110
$ luarocks install argparse
@@ -122,7 +122,7 @@ Tutorial HTML files can be built using [Sphinx](http://sphinx-doc.org/): `sphinx
122122

123123
## Testing
124124

125-
argparse comes with a testing suite located in `spec` directory. [busted](http://olivinelabs.com/busted/) is required for testing, it can be installed using LuaRocks. Run the tests using `busted` command from the argparse folder.
125+
argparse comes with a testing suite located in `spec` directory. [busted](https://github.com/lunarmodules/busted) is required for testing, it can be installed using LuaRocks. Run the tests using `busted` command from the argparse folder.
126126

127127
## License
128128

0 commit comments

Comments
 (0)