-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (30 loc) · 1006 Bytes
/
main.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
name: main
on: [push, workflow_dispatch]
jobs:
format:
runs-on: ubuntu-22.04
container: "datadog/docker-library:kong-plugin-ddtrace-ci"
steps:
- uses: actions/checkout@v3
- name: "Lint"
run: stylua --check kong/ spec/
- name: "Static analysis"
run: luacheck kong spec
run-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: Kong/kong-pongo-action@v1
with:
kong_version: stable
pongo_version: latest
- run: pongo run --no-datadog-agent --no-postgres --no-cassandra -- --coverage
- name: Publish code coverage summary
run: |
beg=$( grep -n "Summary" < luacov.report.out | cut -d ':' -f1 )
tail --lines=+${beg} luacov.report.out >> $GITHUB_STEP_SUMMARY
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: DataDog/kong-plugin-ddtrace