mirror of
https://github.com/taigrr/systemctl.git
synced 2026-04-15 08:40:42 -07:00
chore: update Go 1.26.2, document all helpers in README, use prepareArgs consistently
- Bump go.mod from 1.26.1 to 1.26.2 - Add all helper functions to README (GetUnits, GetMaskedUnits, GetSocketsForServiceUnit, IsSystemd, IsMasked, IsRunning, HasValidUnitSuffix) - Remove unused fmt import from README example - Refactor GetSocketsForServiceUnit, GetUnits, GetMaskedUnits to use prepareArgs instead of manual arg construction - Add Go 1.26.2 to CI test matrix
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: ["1.26"]
|
||||
go-version: ["1.26", "1.26.2"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
run: sudo go test -race -coverprofile=coverage-root.out -covermode=atomic ./...
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
if: matrix.go-version == '1.26'
|
||||
if: matrix.go-version == '1.26.2'
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
files: coverage-user.out,coverage-root.out
|
||||
|
||||
Reference in New Issue
Block a user