-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (47 loc) · 1.28 KB
/
build.yml
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
name: Build
on:
pull_request:
branches:
- main
paths:
- 'kong/**'
- 'spec/**'
jobs:
linting:
name: Linting code.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Luacheck linter
uses: lunarmodules/luacheck@v0
with:
args: kong spec
unit-tests:
needs: linting
name: Running unit tests.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: Kong/kong-pongo-action@v1
with:
kong_version: "2.8.x"
- run: pongo run
build_rock:
name: Try to build the rock.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leafo/gh-actions-lua@v9
- uses: leafo/gh-actions-luarocks@v4
- run: luarocks make
- name: luarocks pack
run: luarocks pack $(find . -maxdepth 1 -name "kong-aws-request-signing-*.rockspec" -print | sed 's/.\///g' | sed 's/.rockspec//g' | sed 's/signing-/signing /g')
- name: get version
id: version
run: echo "version=$(luarocks show aws-request-signing --mversion)" >> "$GITHUB_OUTPUT"
- name: Echo version
env:
VERSION: ${{ steps.version.outputs.version }}
run: echo $VERSION