all repos — gomponents @ 540b2a3491c5e6934e1da65e290b7c29c05c22d3

HTML components in pure Go

Use a test matrix with the last three stable Go versions (#96)

Markus Wüstenberg
commit

540b2a3491c5e6934e1da65e290b7c29c05c22d3

parent

0001b1d60942b8add6879796be7262da8db5772f

1 file changed, 21 insertions(+), 14 deletions(-)

changed files
M .github/workflows/go.yml.github/workflows/go.yml
@@ -7,26 +7,33 @@ pull_request:
branches: [ master ] jobs: - build: - name: Build + test: + name: Test runs-on: ubuntu-latest + strategy: + matrix: + go: [ "1.16", "1.17", "1.18" ] steps: - - name: Check out - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Setup Go - uses: actions/setup-go@v2 - with: - go-version: ^1.17 + - uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + check-latest: true + + - name: Build + run: go build -v ./... - - name: Build - run: go build -v ./... + - name: Test + if: ${{ matrix.go != '1.16' }} + run: go test -v -coverprofile=coverage.txt -shuffle on ./... - - name: Test - run: go test -v -coverprofile=coverage.txt -shuffle on ./... + - name: Test + if: ${{ matrix.go == '1.16' }} + run: go test -v -coverprofile=coverage.txt ./... - - name: Coverage - uses: codecov/codecov-action@v1.0.13 + - name: Coverage + uses: codecov/codecov-action@v2 lint: name: Lint