Skip to content

Commit

Permalink
Upgrade to gomponents v0.19.0 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg authored Sep 22, 2022
1 parent 71ff79e commit 06fb122
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 6 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
test:
name: Test
runs-on: ubuntu-latest

strategy:
matrix:
go:
- 1.16
- 1.17
- 1.18
- 1.19

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
check-latest: true

- name: Build
run: go build -v ./...

- name: Test
if: ${{ matrix.go != '1.16' }}
run: go test -v -coverprofile=coverage.txt -shuffle on ./...

- name: Test
if: ${{ matrix.go == '1.16' }}
run: go test -v -coverprofile=coverage.txt ./...

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/maragudk/gomponents-heroicons

go 1.15

require github.com/maragudk/gomponents v0.18.0
require github.com/maragudk/gomponents v0.19.0
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
github.com/maragudk/gomponents v0.16.0 h1:qoFF52ePoX27b6uvLGfGNcIfN/F6NSg9YCtqoipBXuM=
github.com/maragudk/gomponents v0.16.0/go.mod h1:0OdlqOoqxcwvhBFrp8wlKHnEXhNB7IVhb8GuARmd+tI=
github.com/maragudk/gomponents v0.18.0 h1:EcdeRUWsWW6hK9ftnGAoyXR00SQWecCBxuXghQvdEcc=
github.com/maragudk/gomponents v0.18.0/go.mod h1:0OdlqOoqxcwvhBFrp8wlKHnEXhNB7IVhb8GuARmd+tI=
github.com/maragudk/gomponents v0.19.0 h1:OtcWjsavl4in6o8ZE8tX21b8Dk0sgm85PH/F5LWPVzg=
github.com/maragudk/gomponents v0.19.0/go.mod h1:nHkNnZL6ODgMBeJhrZjkMHVvNdoYsfmpKB2/hjdQ0Hg=
2 changes: 1 addition & 1 deletion internal/assert/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ func Equal(t *testing.T, expected string, actual g.Node) {
var b strings.Builder
_ = actual.Render(&b)
if expected != b.String() {
t.Fatalf(`expected "%v" but got "%v"`, expected, actual)
t.Fatalf(`expected "%v" but got "%v"`, expected, b.String())
}
}

0 comments on commit 06fb122

Please sign in to comment.