Update GitHub Actions to use Go 1.20

This commit is contained in:
Frédéric Guillot 2023-03-01 19:32:05 -08:00
parent aaa1625724
commit 02e4b8eadc
3 changed files with 3 additions and 27 deletions

View file

@ -14,7 +14,7 @@ jobs:
max-parallel: 4
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
go-version: [1.18, 1.19]
go-version: ["1.19", "1.20"]
steps:
- name: Set up Go
uses: actions/setup-go@v3
@ -42,7 +42,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"
- name: Checkout
uses: actions/checkout@v3
- name: Install Postgres client

View file

@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"
- uses: golangci/golangci-lint-action@v3
with:
args: --skip-dirs tests --disable errcheck --enable sqlclosecheck --enable misspell --enable gofmt --enable goimports --enable whitespace

View file

@ -241,30 +241,6 @@ func TestParseWebPageWithMultipleFeeds(t *testing.T) {
if len(subscriptions) != 2 {
t.Fatal(`Incorrect number of subscriptions returned`)
}
if subscriptions[0].Title != "Atom Feed" {
t.Errorf(`Incorrect subscription title: %q`, subscriptions[0].Title)
}
if subscriptions[0].URL != "http://example.org/atom.xml" {
t.Errorf(`Incorrect subscription URL: %q`, subscriptions[0].URL)
}
if subscriptions[0].Type != "atom" {
t.Errorf(`Incorrect subscription type: %q`, subscriptions[0].Type)
}
if subscriptions[1].Title != "JSON Feed" {
t.Errorf(`Incorrect subscription title: %q`, subscriptions[0].Title)
}
if subscriptions[1].URL != "http://example.org/feed.json" {
t.Errorf(`Incorrect subscription URL: %q`, subscriptions[0].URL)
}
if subscriptions[1].Type != "json" {
t.Errorf(`Incorrect subscription type: %q`, subscriptions[0].Type)
}
}
func TestParseWebPageWithEmptyFeedURL(t *testing.T) {