Skip to content

Commit

Permalink
Use go 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Nov 3, 2022
1 parent 4d921a9 commit acf9bcc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 32 deletions.
42 changes: 11 additions & 31 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,17 @@ on:
jobs:

build:
name: Build
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18', '1.19' ]
steps:

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- uses: actions/cache@v2
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies
run: |
# go get -v -t -d ./...
mkdir -p /home/runner/go/src/github.com/akiomik/vimeo-dl/
cp -R . /home/runner/go/src/github.com/akiomik/vimeo-dl/
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: make build

- name: Test
run: make test
go-version: ${{ matrix.go }}
check-latest: true
cache: true
- run: make build
- run: make test
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/akiomik/vimeo-dl

go 1.16
go 1.19

require github.com/spf13/cobra v1.6.1

0 comments on commit acf9bcc

Please sign in to comment.