Skip to content

Commit 4580bad

Browse files
committed
Add test workflow with linting
1 parent bb2b4ee commit 4580bad

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/test.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test gatewayd-plugin-sql-ids-ips
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
paths-ignore:
10+
- "README.md"
11+
- "LICENSE"
12+
- "CONTRIBUTING.md"
13+
- "CODE_OF_CONDUCT.md"
14+
- ".gitignore"
15+
- ".gitattributes"
16+
pull_request:
17+
paths-ignore:
18+
- "README.md"
19+
- "LICENSE"
20+
- "CONTRIBUTING.md"
21+
- "CODE_OF_CONDUCT.md"
22+
- ".gitignore"
23+
- ".gitattributes"
24+
25+
jobs:
26+
test:
27+
name: Test gatewayd-plugin-sql-ids-ips
28+
runs-on: ubuntu-latest
29+
# Timeout after 5 minutes, to avoid hanging tests
30+
timeout-minutes: 5
31+
steps:
32+
- name: Checkout 🛎️
33+
uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
37+
- name: Install Go 🧑‍💻
38+
uses: actions/setup-go@v5
39+
with:
40+
go-version: "1.22"
41+
42+
- name: Lint code issues 🚨
43+
uses: golangci/golangci-lint-action@v4
44+
with:
45+
version: "v1.57"
46+
skip-pkg-cache: true
47+
install-mode: "goinstall"

0 commit comments

Comments
 (0)