Skip to content

chore: upgrade ristretto cache #125

chore: upgrade ristretto cache

chore: upgrade ristretto cache #125

Workflow file for this run

on: [push, pull_request]
name: Test
jobs:
# https://github.com/mvdan/github-actions-golang
test:
strategy:
matrix:
go-version: [1.23.x]
os: [ubuntu-latest]
#, macos-latest, windows-latest]
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
- name: Go Fmt
run: go fmt ./...
- name: Test
run: go test ./...
- uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# to do: lint when dealing with false positives is solved
# https://golangci-lint.run/usage/false-positives/
# https://github.com/golangci/golangci-lint-action
# golangci:
# name: lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v2
# with:
# # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
# version: v1.29
# # Optional: working directory, useful for monorepos
# # working-directory: somedir
# # Optional: golangci-lint command line arguments.
# # args: --issues-exit-code=0
# # Optional: show only new issues if it's a pull request. The default value is `false`.
# # only-new-issues: true