Skip to content

Commit

Permalink
Move towards Github Actions + Deprecating old code/tooling (#35)
Browse files Browse the repository at this point in the history
* Enable Github actions

* [Deprecation] Deprecating code and utilities

* [deprecate] Earthly builds

* Final draft of the github actions

* Go Releaser on GitHub actions
  • Loading branch information
iuga authored Sep 6, 2024
1 parent 196160f commit 02c79c9
Show file tree
Hide file tree
Showing 58 changed files with 74 additions and 5,852 deletions.
80 changes: 0 additions & 80 deletions .buildkite/pipeline.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions .buildkite/steps/common

This file was deleted.

9 changes: 0 additions & 9 deletions .buildkite/steps/release

This file was deleted.

5 changes: 0 additions & 5 deletions .earthignore

This file was deleted.

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

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

jobs:

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

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23

- name: Go Tidy
run: go mod tidy && git diff --exit-code

- name: Build
run: go build -v ./...

- name: Test
run: go test --count=1 --timeout=30s -v ./...

- name: Lint code
uses: golangci/golangci-lint-action@v6
with:
only-new-issues: true
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.DS_Store
test-results/
dist/
vendor/
5 changes: 3 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
run:
go: "1.20"
go: "1.23"
timeout: 5m
issues-exit-code: 1
tests: true
skip-dirs-use-default: true
modules-download-mode: vendor
modules-download-mode: readonly

linters:
enable:
Expand Down Expand Up @@ -32,3 +32,4 @@ issues:
exclude:
- EXC0002 # Annoying issue about not having a comment
- EXC0012 # func should have comment or be unexported
- EXG115 # integer overflow conversion uint64 -> int
8 changes: 1 addition & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2

project_name: lazylru

version: 2
builds:
- skip: true

release:
prerelease: auto

changelog:
sort: asc
Loading

0 comments on commit 02c79c9

Please sign in to comment.