Skip to content

Commit 7552ac4

Browse files
committed
fix(ci) allow nektos/act to run workflow locally
This requires nodejs to be added to the image. Also cleaned a few things up and bumped openresty patch versions.
1 parent 26dfd76 commit 7552ac4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
strategy:
1919
matrix:
2020
openresty_version:
21-
- 1.17.8.1
22-
- 1.19.3.1
21+
- 1.17.8.2
22+
- 1.19.9.1
2323

2424
runs-on: ubuntu-latest
2525
container:
@@ -28,9 +28,10 @@ jobs:
2828
options: --init
2929

3030
steps:
31+
- uses: actions/checkout@v2
3132
- name: Install deps
3233
run: |
33-
apk add --no-cache curl perl bash wget git perl-dev libarchive-tools
34+
apk add --no-cache curl perl bash wget git perl-dev libarchive-tools nodejs
3435
ln -s /usr/bin/bsdtar /usr/bin/tar
3536
3637
- name: Install CPAN
@@ -48,14 +49,12 @@ jobs:
4849
run: cpanm -q -n Test::Nginx
4950

5051
- name: Install Luacov
51-
run: luarocks install luacov
52+
run: /usr/local/openresty/luajit/bin/luarocks install luacov
5253

5354
- uses: actions/checkout@v2
5455

5556
- name: Run tests
56-
env:
57-
TEST_COVERAGE: '1'
58-
run: /usr/bin/prove -I../test-nginx/lib -r t/
57+
run: make coverage
5958

6059
- name: Coverage
6160
run: |

0 commit comments

Comments
 (0)