-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release 3.0.0 #142
release 3.0.0 #142
Changes from all commits
a7458b3
2a0cec8
7defc7e
0ca1642
c3679ff
06c99ce
03c9379
8c9a29f
439b5a1
8f6ee73
1319eb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
name: Build and test - with resty_events | ||
|
||
concurrency: | ||
# for PR's cancel the running task, if another commit is pushed | ||
group: ${{ github.workflow }} ${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
on: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The previous trigger made running the workflow twice if there was a PR opened - so I've copied the options that we have in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fyi; you might want to add concurrency in there, example: https://github.com/Tieske/project.lua/blob/main/.github/workflows/unix_build.yml#L3-L16 (just a consideration, no blocker) |
||
pull_request: {} | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- release/** | ||
|
||
jobs: | ||
build: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Lint | ||
|
||
concurrency: | ||
# for PR's cancel the running task, if another commit is pushed | ||
group: ${{ github.workflow }} ${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
on: | ||
pull_request: {} | ||
workflow_dispatch: {} | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
lua-check: | ||
name: Lua Check | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: read | ||
checks: write | ||
pull-requests: write | ||
if: (github.actor != 'dependabot[bot]') | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v3 | ||
|
||
# Optional step to run on only changed files | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@54849deb963ca9f24185fb5de2965e002d066e6b # v37 | ||
with: | ||
files: | | ||
**.lua | ||
|
||
- name: Lua Check | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
uses: Kong/public-shared-actions/code-check-actions/lua-lint@c03e30a36e8a2dde5cbd463229a96aaad7ccad24 | ||
with: | ||
additional_args: '--no-default-config --config .luacheckrc' | ||
files: ${{ steps.changed-files.outputs.all_changed_files }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: SAST | ||
|
||
concurrency: | ||
# for PR's cancel the running task, if another commit is pushed | ||
group: ${{ github.workflow }} ${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- lib/**.lua | ||
push: | ||
branches: | ||
- master | ||
- main | ||
paths: | ||
- lib/**.lua | ||
workflow_dispatch: {} | ||
|
||
|
||
jobs: | ||
semgrep: | ||
name: Semgrep SAST | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required for all workflows | ||
security-events: write | ||
# only required for workflows in private repositories | ||
actions: read | ||
contents: read | ||
|
||
if: (github.actor != 'dependabot[bot]') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Kong/public-shared-actions/security-actions/semgrep@c03e30a36e8a2dde5cbd463229a96aaad7ccad24 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package = "lua-resty-healthcheck" | ||
version = "3.0.0-1" | ||
source = { | ||
url = "git+https://github.com/Kong/lua-resty-healthcheck.git", | ||
tag = "3.0.0" | ||
} | ||
description = { | ||
summary = "Healthchecks for OpenResty to check upstream service status", | ||
detailed = [[ | ||
lua-resty-healthcheck is a module that can check upstream service | ||
availability by sending requests and validating responses at timed | ||
intervals. | ||
]], | ||
license = "Apache 2.0", | ||
homepage = "https://github.com/Kong/lua-resty-healthcheck" | ||
} | ||
dependencies = { | ||
"penlight >= 1.9.2", | ||
"lua-resty-timer ~> 1", | ||
} | ||
build = { | ||
type = "builtin", | ||
modules = { | ||
["resty.healthcheck"] = "lib/resty/healthcheck.lua", | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was confusing on GH Actions site as there were simply two workflows named
Build and test
. I've added this suffix to differentiate between them.