Skip to content

Commit

Permalink
Add test workflow with linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed Apr 6, 2024
1 parent bb2b4ee commit 4580bad
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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"

0 comments on commit 4580bad

Please sign in to comment.