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
14 changes: 10 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.24

- name: lint
uses: golangci/golangci-lint-action@v2.5.2
- name: Set up Node
uses: actions/setup-node@v4
with:
args: ./...
node-version: '18'

- run: npm ci
- run: npm run build

- name: lint
uses: golangci/golangci-lint-action@v8.0.0

- name: Build
run: go build -v ./...
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.24

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'

- run: npm ci
- run: npm run build

- name: GHCR Login
uses: docker/login-action@v1
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
go-version: 1.24

- name: Docker Hub Login
uses: docker/login-action@v1
Expand All @@ -36,11 +36,16 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '18'

- run: npm ci
- run: npm run build

- name: GoReleaser
uses: goreleaser/goreleaser-action@v5.0.0
uses: goreleaser/goreleaser-action@v6.4.0
with:
args: release --clean
env:
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
project_name: Audimance
builds:
- binary: audimance
Expand All @@ -14,12 +15,12 @@ builds:

archives:
- id: audimance
format: binary
formats: [ 'binary' ]
name_template: "{{ .Binary }}.{{ .Os }}.{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
Expand Down
2 changes: 1 addition & 1 deletion cmd/autotrigger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func findCue(cueName string) (string, error) {
return "", fmt.Errorf("failed to retrieve agenda: %w", err)
}

defer resp.Body.Close()
defer resp.Body.Close() //nolint: errcheck

var a agenda.Agenda

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func performanceTime(c echo.Context) error {
ctx := c.(*CustomContext)

websocket.Handler(func(ws *websocket.Conn) {
defer ws.Close()
defer ws.Close() //nolint: errcheck

// Create a subscription to the showtime service
sub := ctx.ShowTime.Subscribe()
Expand Down
4 changes: 3 additions & 1 deletion showtime/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ func (s *Service) Run(qlabAddr string) error {
if err != nil {
return fmt.Errorf("failed to listen on UDP port: %w", err)
}
defer conn.Close()

defer conn.Close() //nolint: errcheck

go s.processUDP(conn)

// Tick on a periodic interval
Expand Down
Loading