Skip to content

build(deps): bump actions/cache from 4.0.2 to 4.1.1 #225

build(deps): bump actions/cache from 4.0.2 to 4.1.1

build(deps): bump actions/cache from 4.0.2 to 4.1.1 #225

Workflow file for this run

name: ci
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
paths-ignore:
- 'README.md'
jobs:
golangci:
strategy:
matrix:
go-version: ['stable']
os: [ubuntu-latest]
name: golangci-lint
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
lint:
strategy:
matrix:
go-version: ['stable']
os: [windows-latest, macos-latest, ubuntu-latest]
name: lint
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
- uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: go vet
run: go vet ./...
- name: go build
run: go build
test:
strategy:
matrix:
go-version: ['stable']
os: [windows-latest, macos-latest, ubuntu-latest]
name: test
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
- uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: go test
run: go test -v ./... -coverprofile=coverage.out
- uses: k1LoW/octocov-action@v1
if: runner.os == 'Linux'