Skip to content

Commit

Permalink
Refinements to the CI pipeline
Browse files Browse the repository at this point in the history
- Remove stale workflow
- Add golangci-lint to the CI pipeline
- Use stable Go version for tests
- Enable race condition detection in tests
- Change wording
  • Loading branch information
5nord committed Nov 5, 2024
1 parent 15ece2f commit 5e77668
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 49 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/BuildAndTest.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Continous Integration

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: stable
- name: Test
run: go test -race -v ./...

lint:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: Release with goreleaser
name: Release
on:
push:
tags:
- v*.*
jobs:
# Create packages, archives, ...
goreleaser:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Unshallow Fetch
- name: Fetch history
run: git fetch --prune --unshallow
- uses: actions/setup-go@v2
with:
Expand All @@ -19,6 +20,8 @@ jobs:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create MSI (Microsoft Installer) for ntt
msi:
needs: goreleaser
runs-on: windows-latest
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/stale.yml

This file was deleted.

0 comments on commit 5e77668

Please sign in to comment.