mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-19 12:12:42 +02:00
upgrade actions/setup-go to v4 and remove actions/cache for go cache
This commit is contained in:
parent
0c0fe8997b
commit
51ecf4089b
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
- name: Unshallow repo
|
- name: Unshallow repo
|
||||||
run: git fetch --prune --unshallow
|
run: git fetch --prune --unshallow
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Run goreleaser
|
- name: Run goreleaser
|
||||||
|
55
.github/workflows/ci.yml
vendored
55
.github/workflows/ci.yml
vendored
@ -30,18 +30,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Cache build
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
${{matrix.cache_path}}
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
|
|
||||||
restore-keys: |
|
|
||||||
${{runner.os}}-go-
|
|
||||||
- name: Test code
|
- name: Test code
|
||||||
# we're passing -short so that we skip the integration tests, which will be run in parallel below
|
# we're passing -short so that we skip the integration tests, which will be run in parallel below
|
||||||
run: |
|
run: |
|
||||||
@ -89,18 +80,9 @@ jobs:
|
|||||||
path: ~/git-${{matrix.git-version}}
|
path: ~/git-${{matrix.git-version}}
|
||||||
key: ${{runner.os}}-git-${{matrix.git-version}}
|
key: ${{runner.os}}-git-${{matrix.git-version}}
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Cache build
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
|
|
||||||
restore-keys: |
|
|
||||||
${{runner.os}}-go-
|
|
||||||
- name: Print git version
|
- name: Print git version
|
||||||
run: git --version
|
run: git --version
|
||||||
- name: Test code
|
- name: Test code
|
||||||
@ -115,18 +97,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Cache build
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-build
|
|
||||||
restore-keys: |
|
|
||||||
${{runner.os}}-go-
|
|
||||||
- name: Build linux binary
|
- name: Build linux binary
|
||||||
run: |
|
run: |
|
||||||
GOOS=linux go build
|
GOOS=linux go build
|
||||||
@ -151,18 +124,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Cache build
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-build
|
|
||||||
restore-keys: |
|
|
||||||
${{runner.os}}-go-
|
|
||||||
- name: Check Cheatsheet
|
- name: Check Cheatsheet
|
||||||
run: |
|
run: |
|
||||||
go run scripts/cheatsheet/main.go check
|
go run scripts/cheatsheet/main.go check
|
||||||
@ -185,18 +149,9 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v1
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.20.x
|
go-version: 1.20.x
|
||||||
- name: Cache build
|
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cache/go-build
|
|
||||||
~/go/pkg/mod
|
|
||||||
key: ${{runner.os}}-go-${{hashFiles('**/go.sum')}}-test
|
|
||||||
restore-keys: |
|
|
||||||
${{runner.os}}-go-
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
uses: golangci/golangci-lint-action@v3.1.0
|
uses: golangci/golangci-lint-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user