Skip to content

fix(deps): update all non-major dependencies in .github/workflows/tinygo.yml #4685

fix(deps): update all non-major dependencies in .github/workflows/tinygo.yml

fix(deps): update all non-major dependencies in .github/workflows/tinygo.yml #4685

Workflow file for this run

name: Regression Tests
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
permissions: {}
concurrency:
group: regression-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: [1.25.x]
os: [ubuntu-latest]
build-flag:
- ""
- "coraza.rule.mandatory_rule_id_check"
- "coraza.rule.case_sensitive_args_keys"
- "coraza.rule.no_regex_multiline"
- "coraza.no_memoize"
- "coraza.rule.multiphase_evaluation"
- "no_fs_access"
- "coraza.rule.multiphase_evaluation,coraza.rule.mandatory_rule_id_check"
- "coraza.rule.multiphase_evaluation,coraza.rule.case_sensitive_args_keys"
- "coraza.rule.multiphase_evaluation,coraza.rule.no_regex_multiline"
- "no_fs_access,coraza.no_memoize"
- "coraza.rule.mandatory_rule_id_check,coraza.rule.case_sensitive_args_keys,coraza.rule.no_regex_multiline"
- "coraza.rule.multiphase_evaluation,coraza.rule.mandatory_rule_id_check,coraza.rule.case_sensitive_args_keys,coraza.rule.no_regex_multiline,coraza.no_memoize,no_fs_access"
include:
- go-version: 1.26.x
os: ubuntu-latest
build-flag: ""
- go-version: 1.26.x
os: ubuntu-latest
build-flag: "coraza.rule.multiphase_evaluation,coraza.rule.mandatory_rule_id_check,coraza.rule.case_sensitive_args_keys,coraza.rule.no_regex_multiline,coraza.no_memoize,no_fs_access"
runs-on: ${{ matrix.os }}
permissions:
contents: read
env:
GOLANG_BASE_VERSION: "1.25.x"
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Tests and coverage
env:
BUILD_TAGS: ${{ matrix.build-flag }}
run: go run mage.go coverage
- name: "Codecov: General"
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
if: ${{ matrix.go-version == env.GOLANG_BASE_VERSION }}
with:
files: build/coverage.txt
flags: default,${{ matrix.build-flag }}
token: ${{ secrets.CODECOV_TOKEN }}
- name: "Codecov: Examples"
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
if: ${{ matrix.go-version == env.GOLANG_BASE_VERSION }}
with:
files: build/coverage-examples.txt
flags: examples+${{ matrix.build-flag }}
token: ${{ secrets.CODECOV_TOKEN }}
- name: "Codecov: FTW"
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
if: ${{ matrix.go-version == env.GOLANG_BASE_VERSION }}
with:
files: build/coverage-ftw.txt
flags: ftw,${{ matrix.build-flag }}
token: ${{ secrets.CODECOV_TOKEN }}
- name: "Codecov: Tinygo"
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
# only if coverage-tinygo.txt exists
if: ${{ matrix.go-version == env.GOLANG_BASE_VERSION && hashFiles('build/coverage-tinygo.txt') != '' }}
with:
files: build/coverage-tinygo.txt
flags: tinygo,${{ matrix.build-flag }}
token: ${{ secrets.CODECOV_TOKEN }}
enforce-all-checks:
runs-on: ubuntu-latest
permissions:
checks: read
contents: read
steps:
- name: GitHub Checks
uses: poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
delay: 30s
interval: 10s # default value
timeout: 3600s # default value
ignore: "codecov/patch,codecov/project"