diff options
author | Markus Wüstenberg | 2022-03-21 12:05:17 +0100 |
---|---|---|
committer | GitHub | 2022-03-21 12:05:17 +0100 |
commit | 540b2a3491c5e6934e1da65e290b7c29c05c22d3 (patch) | |
tree | ccdb78c61bc437d7831a57a53ee43f04f515f759 /.github | |
parent | 0001b1d60942b8add6879796be7262da8db5772f (diff) | |
download | gomponents-540b2a3491c5e6934e1da65e290b7c29c05c22d3.tar.lz gomponents-540b2a3491c5e6934e1da65e290b7c29c05c22d3.tar.zst gomponents-540b2a3491c5e6934e1da65e290b7c29c05c22d3.zip |
Use a test matrix with the last three stable Go versions (#96)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/go.yml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6f605e0..8532c94 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,26 +7,33 @@ on: 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 |