Add tests (#20) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.22" | |
- name: Lint code issues 🚨 | |
uses: golangci/golangci-lint-action@v4 | |
with: | |
version: "v1.57" | |
skip-pkg-cache: true | |
install-mode: "goinstall" | |
- name: Run tests 🧪 | |
run: make test |