Skip to content

Commit f089504

Browse files
committed
update CI and use lunajson for tests
harningt/luajson#51
1 parent 5125971 commit f089504

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: checkout
9-
uses: actions/checkout@v3
9+
uses: actions/checkout@v5
1010

1111
- name: luacheck
1212
uses: lunarmodules/luacheck@v1
1313

1414
tests:
1515
strategy:
1616
matrix:
17-
lua-version: ["5.1.5", "5.2.4", "5.3.6", "5.4.4"]
17+
lua-version: ["5.1.5", "5.2.4", "5.3.6", "5.4.8"]
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v5
22+
23+
- name: install readline
24+
run: sudo apt-get install -y libreadline-dev
2225

2326
- name: localua
2427
run: |

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (C) 2012-2013 by Moodstocks SAS
2-
Copyright (C) 2014-2022 by Pierre Chapuis
2+
Copyright (C) since 2014 by Pierre Chapuis
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ http_digest.http = require "copas.http"
4343
## Copyright
4444

4545
- Copyright (c) 2012-2013 Moodstocks SAS
46-
- Copyright (c) 2014-2022 Pierre Chapuis
46+
- Copyright (c) since 2014 Pierre Chapuis

http-digest.test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local http_digest = require "http-digest"
55
local json_decode
66
do -- Find a JSON parser
77
local ok, json = pcall(require, "cjson")
8-
if not ok then ok, json = pcall(require, "json") end
8+
if not ok then ok, json = pcall(require, "lunajson") end
99
json_decode = json.decode
1010
assert(ok and json_decode, "no JSON parser found :(")
1111
end

rockspec/http-digest-scm-1.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ build = {
3131

3232
test_dependencies = {
3333
"cwtest",
34-
"luajson",
34+
"lunajson",
3535
"copas",
3636
"luasocket >= 3.1", -- see https://github.com/lunarmodules/copas/issues
3737
}

0 commit comments

Comments
 (0)