Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ name: Go

on:
push:
branches: [ "master" ]
branches: [ master ]
tags: [ 'v*' ]
pull_request:
branches: [ "master" ]

jobs:
CI:
strategy:
matrix:
go_version: [ "1.13.x", "1.18.x" ]
go_version: [ "1.18.x", "1.24.x" ]

runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/checkout@v4"

- name: "Set up Go"
uses: "actions/setup-go@v3"
uses: "actions/setup-go@v5"
with:
go-version: ${{ matrix.go_version }}

Expand All @@ -28,7 +28,22 @@ jobs:
run: "go test -v ./..."

- name: "Linter"
uses: "golangci/golangci-lint-action@v3"
uses: "golangci/golangci-lint-action@v7"
with:
version: "v1.48"
version: "v2.0"

Release:
if: startsWith(github.ref, 'refs/tags/')
needs: CI
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: "2"
linters:
disable:
- "errcheck"
- errcheck
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Michał Dobaczewski
Copyright (c) 2025 Michał Dobaczewski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading
Loading