Skip to content

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

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

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

Workflow file for this run

name: Tinygo tests
on:
push:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
pull_request:
branches:
- main
paths-ignore:
- "**/*.md"
- "LICENSE"
permissions: {}
concurrency:
group: tinygo-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
test:
strategy:
matrix:
go-version: [1.25.x]
# tinygo-version is meant to stay aligned with the one used in corazawaf/coraza-proxy-wasm
tinygo-version: [0.40.1]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: ${{ matrix.go-version }}
cache: true
- name: Download dependencies
run: go mod download
- name: Setup tinygo
uses: acifani/setup-tinygo@db56321a62b9a67922bb9ac8f9d085e218807bb3 # v2
with:
tinygo-version: ${{ matrix.tinygo-version }}
- name: Cache TinyGo build
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
with:
path: |
~/.cache/tinygo
key: ${{ runner.os }}-tinygo-${{ matrix.tinygo-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-tinygo-${{ matrix.tinygo-version }}-
- name: Tests
run: tinygo test -v -short ./internal/...
- name: Tests no_memoize
run: tinygo test -v -short -tags=coraza.no_memoize ./internal/...