Browse Source

Update GitHub Actions to use Go 1.20

Frédéric Guillot 3 years ago
parent
commit
02e4b8eadc
3 changed files with 3 additions and 27 deletions
  1. 2 2
      .github/workflows/ci.yml
  2. 1 1
      .github/workflows/linters.yml
  3. 0 24
      reader/subscription/finder_test.go

+ 2 - 2
.github/workflows/ci.yml

@@ -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

+ 1 - 1
.github/workflows/linters.yml

@@ -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

+ 0 - 24
reader/subscription/finder_test.go

@@ -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) {