update mergefs, go to 1.22 #583
Workflow file for this run
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: Nightly Coraza | |
on: | |
pull_request: | |
paths: | |
- ".github/workflows/nightly-coraza.yml" | |
schedule: | |
- cron: "0 4 * * *" | |
jobs: | |
nightly-coraza: | |
strategy: | |
matrix: | |
go-version: [1.22.x] | |
os: [ubuntu-latest] | |
xcaddy-version: [v0.3.5] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
fetch-depth: 0 #for better blame info | |
- name: Tests and coverage | |
run: go run mage.go coverage | |
- name: Install xcaddy | |
run: go install github.com/caddyserver/xcaddy/cmd/xcaddy@${{ matrix.xcaddy-version }} | |
- name: Get last commit of coraza | |
id: coraza-latest-commit | |
run: echo "value=$(gh api repos/corazawaf/coraza/commits/main -q .sha)" >> $GITHUB_OUTPUT | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Fetch last coraza version | |
run: go get -u github.com/corazawaf/coraza/v3@${{ steps.coraza-latest-commit.outputs.value }} && go mod tidy | |
- name: Build caddy | |
run: go run mage.go buildCaddyLinux | |
- name: Run e2e tests | |
run: go run mage.go e2e |