From 9ad904a10d6ddc577151742c47aa93d2965b9eeb Mon Sep 17 00:00:00 2001 From: Tammy Date: Tue, 9 Apr 2024 00:18:23 +0800 Subject: [PATCH] Update GitHub Actions workflow configuration and disable Go module cache (#17) --- .github/FUNDING.yml | 4 +++- .github/workflows/go.yml | 13 +++++++------ LICENSE | 2 +- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index b520f22..ab9fc53 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,7 @@ +github: xuri +open_collective: excelize patreon: xuri ko_fi: xurime liberapay: xuri issuehunt: xuri -custom: https://www.paypal.me/xuri +custom: https://www.paypal.com/paypalme/xuri \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f5bec17..35b5a01 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,19 +1,20 @@ name: Go -on: push +on: [push, pull_request] jobs: test: strategy: matrix: - go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x] - platform: [ubuntu-latest] - runs-on: ${{ matrix.platform }} + go-version: [1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x, 1.17.x, 1.18.x, 1.19.x, 1.20.x, 1.21.x, 1.22.x] + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} + cache: false id: go - name: Check out code into the Go module directory @@ -30,7 +31,7 @@ jobs: run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... - name: Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{secrets.CODECOV_TOKEN}} file: coverage.txt diff --git a/LICENSE b/LICENSE index b01e42c..8648fee 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 3-Clause License -Copyright (c) 2017 - 2022 Ri Xu All rights reserved. +Copyright (c) 2017 - 2024 Ri Xu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: