Skip to content

Commit

Permalink
fix: Electricity Maps test and go releaser version (#85)
Browse files Browse the repository at this point in the history
Signed-off-by: Ross Fairbanks <[email protected]>
  • Loading branch information
rossf7 authored Jun 11, 2024
1 parent 3d2b9ac commit 785bd57
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-releaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
private_key: ${{ secrets.HOMEBREW_TAP_GITHUB_APP_PEM }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand Down
12 changes: 9 additions & 3 deletions pkg/provider/electricity_maps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,15 @@ import (

var MockElectricityMapResponse = `{
"zone": "IN-KA",
"carbonIntensity": 312,
"datetime": "2020-01-01T00:00:00.000Z",
"updatedAt": "2020-01-01T00:00:01.000Z"
"history": [
{
"zone": "IN-KA",
"carbonIntensity": 312,
"datetime": "2020-01-01T00:00:00.000Z",
"updatedAt": "2020-01-01T00:00:01.000Z",
"isEstimated": true
}
]
}`

func Test_ElectricityMaps_SimpleRequest(t *testing.T) {
Expand Down

0 comments on commit 785bd57

Please sign in to comment.