Skip to content

Commit

Permalink
Go 1.21
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <[email protected]>
  • Loading branch information
AkihiroSuda committed Aug 11, 2023
1 parent ed878ef commit 50536bf
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Make darwin artifacts
run: make artifacts-darwin
- name: "Upload artifacts"
Expand All @@ -50,7 +50,7 @@ jobs:
path: _artifacts/
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Install gcc-aarch64-linux-gnu
run: |
sudo apt-get update
Expand Down
33 changes: 25 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
pull_request:

jobs:
basic:
name: "Lints & Unit tests"
lints:
name: "Lints"
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
Expand All @@ -18,7 +18,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Run golangci-lint
uses: golangci/[email protected]
with:
Expand All @@ -40,6 +40,23 @@ jobs:
uses: docker://dkhamsing/awesome_bot:latest
with:
args: /github/workspace/README.md --allow-dupe --allow-redirect --request-delay 1 --white-list https://img.shields.io,http://127.0.0.1:8080,https://github.com/lima-vm/lima/releases/download,https://xbarapp.com,https://api.github.com

unit:
name: "Unit tests"
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
# For Linux we have to support an old release of Go
go-version: ["1.20.x", "1.21.x"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Unit tests
run: go test -v ./...
- name: Make
Expand All @@ -59,7 +76,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Unit tests
run: go test -v ./...
- name: Make
Expand All @@ -75,7 +92,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Cache ~/Library/Caches/lima/download
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -242,7 +259,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Cache ~/Library/Caches/lima/download
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -316,7 +333,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Cache ~/Library/Caches/lima/download
uses: actions/cache@v3
with:
Expand All @@ -342,7 +359,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x
- name: Cache ~/Library/Caches/lima/download
uses: actions/cache@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lima-vm/lima

go 1.19
go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.7
Expand Down

0 comments on commit 50536bf

Please sign in to comment.