Skip to content

updates to CRS 4.6, some repo maintenance #52

updates to CRS 4.6, some repo maintenance

updates to CRS 4.6, some repo maintenance #52

Workflow file for this run

name: Regression Tests
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
pull_request:
paths-ignore:
- "**/*.md"
- "LICENSE"
jobs:
test:
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Tests
run: go run mage.go test
check_changes:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
- name: Download CRS and Coraza config
run: go run mage.go downloadDeps
# Ref: https://gist.github.com/somidad/3ce6e8a7b7d77ac8fa7fad583003d6f5
- name: Check if there are changes
id: changes
run: echo "changed=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
- name: Process changes
if: steps.changes.outputs.changed != 0
run: |
echo 'Uncommited changes detected. Run `go run mage.go downloadDeps` to check the changes and commit them.'
exit 1