Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update go version and dependencies #103

Merged
merged 1 commit into from
Aug 4, 2024
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
95 changes: 47 additions & 48 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
tag_name:
description: 'Tag name for release'
description: "Tag name for release"
required: true
default: master
push:
Expand All @@ -18,62 +18,61 @@ jobs:
name: artifacts
strategy:
matrix:
go-version: [1.21.5]
go-version: [1.22.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: build
run: |
make build-release

- name: 'Upload macOS-amd64 artifact'
uses: actions/upload-artifact@v2
with:
name: helm_ls_darwin_amd64
path: ./dist/darwin-amd64_darwin_amd64_v1/helm-ls
retention-days: 1

- name: 'Upload macOS-arm64 artifact'
uses: actions/upload-artifact@v2
with:
name: helm_ls_darwin_arm64
path: ./dist/darwin-arm64_darwin_arm64/helm-ls
retention-days: 1

- name: 'Upload linux/amd64 artifact'
uses: actions/upload-artifact@v2
with:
name: helm_ls_linux_amd64
path: ./dist/linux-amd64_linux_amd64_v1/helm-ls
retention-days: 1

- name: 'Upload linux/arm artifact'
uses: actions/upload-artifact@v2
with:
name: helm_ls_linux_arm
path: ./dist/linux-arm64_linux_arm64/helm-ls
retention-days: 1

- name: 'Upload windows/amd64 artifact'
uses: actions/upload-artifact@v2
with:
name: helm_ls_windows_amd64
path: ./dist/windows-amd64_windows_amd64_v1/helm-ls.exe
retention-days: 1
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: build
run: |
make build-release

- name: "Upload macOS-amd64 artifact"
uses: actions/upload-artifact@v2
with:
name: helm_ls_darwin_amd64
path: ./dist/darwin-amd64_darwin_amd64_v1/helm-ls
retention-days: 1

- name: "Upload macOS-arm64 artifact"
uses: actions/upload-artifact@v2
with:
name: helm_ls_darwin_arm64
path: ./dist/darwin-arm64_darwin_arm64/helm-ls
retention-days: 1

- name: "Upload linux/amd64 artifact"
uses: actions/upload-artifact@v2
with:
name: helm_ls_linux_amd64
path: ./dist/linux-amd64_linux_amd64_v1/helm-ls
retention-days: 1

- name: "Upload linux/arm artifact"
uses: actions/upload-artifact@v2
with:
name: helm_ls_linux_arm
path: ./dist/linux-arm64_linux_arm64/helm-ls
retention-days: 1

- name: "Upload windows/amd64 artifact"
uses: actions/upload-artifact@v2
with:
name: helm_ls_windows_amd64
path: ./dist/windows-amd64_windows_amd64_v1/helm-ls.exe
retention-days: 1

publish:
needs: [artifacts]
runs-on: ubuntu-20.04
permissions:
contents: write
steps:

- uses: actions/download-artifact@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -157,7 +156,7 @@ jobs:
1. Download **helm_ls_linux_arm**
2. Run `./helm_ls_linux_arm`
## SHA256 Checksums

```
${{ env.SHA_LINUX_64 }}
${{ env.SHA_MACOS_AMD64 }}
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ on:
pull_request:

jobs:

golangci:
name: lint
strategy:
matrix:
go-version: [1.21.5]
go-version: [1.22.4]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Lint
run: make lint
- name: Lint
run: make lint
20 changes: 9 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ on:
pull_request:

jobs:

tests:
name: tests
strategy:
matrix:
go-version: [1.21.5]
go-version: [1.22.4]
os: [ubuntu-latest, macos-latest, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Run tests
run: make test
- name: Run tests
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export BIN=$(ROOT)/bin
export GOBIN?=$(BIN)
export GO=$(shell which go)
export PACKAGE_NAME=github.com/mrjosh/helm-ls
export GOLANG_CROSS_VERSION=v1.21.5
export GOLANG_CROSS_VERSION=v1.22.4
export CGO_ENABLED=1

$(eval GIT_COMMIT=$(shell git rev-parse --short HEAD))
Expand Down
Loading
Loading