generated from gatewayd-io/plugin-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.22 KB
/
test.yaml
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: Test gatewayd-plugin-sql-ids-ips
on:
push:
branches:
- main
tags:
- v*
paths-ignore:
- "README.md"
- "LICENSE"
- "CONTRIBUTING.md"
- "CODE_OF_CONDUCT.md"
- ".gitignore"
- ".gitattributes"
pull_request:
paths-ignore:
- "README.md"
- "LICENSE"
- "CONTRIBUTING.md"
- "CODE_OF_CONDUCT.md"
- ".gitignore"
- ".gitattributes"
jobs:
test:
name: Test gatewayd-plugin-sql-ids-ips
runs-on: ubuntu-latest
# Timeout after 5 minutes, to avoid hanging tests
timeout-minutes: 5
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go 🧑💻
uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Lint code issues 🚨
uses: golangci/golangci-lint-action@v6
- name: Run tests 🧪
run: go test -p 1 -cover -covermode atomic -coverprofile=profile.cov -v ./...
# Uncomment the following lines to upload the coverage report to Coveralls
# - name: Upload coverage report 📈
# uses: shogo82148/actions-goveralls@v1
# with:
# path-to-profile: profile.cov