Skip to content

Bump dominikh/staticcheck-action from 1.4.0 to 1.4.1 (#8) #42

Bump dominikh/staticcheck-action from 1.4.0 to 1.4.1 (#8)

Bump dominikh/staticcheck-action from 1.4.0 to 1.4.1 (#8) #42

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
services:
# https://docs.github.com/cn/actions/using-containerized-services/creating-redis-service-containers#running-jobs-directly-on-the-runner-machine
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres:alpine
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
mysql:
image: mysql
env:
MYSQL_DATABASE: cache
MYSQL_ROOT_PASSWORD: mysql
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Run staticcheck lint
uses: dominikh/staticcheck-action@v1.4.1
with:
version: "2025.1"
install-go: false
- name: Test
run: go test -v ./...