From 086046840e5f05b55f7e4bcc94fd1fa5ee6d11a8 Mon Sep 17 00:00:00 2001 From: Loo Zheng Yuan Date: Fri, 30 Aug 2024 20:57:57 +0800 Subject: [PATCH 1/2] chore(deps): update dependabot config --- .github/dependabot.yml | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9b53106..9491502 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,33 @@ # Configuration file for GitHub Dependabot -# https://help.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - # Root directory for GitHub Actions is - # the default location of `.github/workflows` - directory: "/" + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "monthly" - # Maintain dependencies for Go Modules + interval: 'weekly' + day: 'saturday' + time: '09:00' + timezone: 'Asia/Singapore' + groups: + gha: + patterns: + - '*' + update-types: + - 'minor' + - 'patch' - package-ecosystem: "gomod" - directory: "/" + directory: '/' schedule: - interval: "monthly" + interval: 'weekly' + day: 'saturday' + time: '09:00' + timezone: 'Asia/Singapore' + groups: + gha: + patterns: + - '*' + update-types: + - 'minor' + - 'patch' From 485f4fac2f73b9d9680a7717be1031377706a7d1 Mon Sep 17 00:00:00 2001 From: Loo Zheng Yuan Date: Fri, 30 Aug 2024 21:02:37 +0800 Subject: [PATCH 2/2] chore(ci): update CI pipeline --- .github/workflows/test.yml | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f95cf9c..1fd8598 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,9 +8,15 @@ on: branches: - main +defaults: + run: + # NOTE: Default option does not include `-o pipefail` as documented + # unless explicitly specifying the `bash` shell. + # https://github.com/actions/runner/issues/353 + shell: bash + jobs: - test-golang: - name: Test on Go ${{ matrix.go }} (${{ matrix.os }}) + test: runs-on: ${{ matrix.os }} timeout-minutes: 3 strategy: @@ -18,34 +24,28 @@ jobs: os: # NOTE: Non-linux systems uses more billable minutes. # Enable them only if they are strictly required. - # - windows-latest - # - macos-latest - - ubuntu-latest + # - "windows-2022" + # - "macos-14" + - "ubuntu-22.04" go: - # - 1.12 - # - 1.13 - # - 1.14 - # - 1.15 - - 1.16 - - 1.17 + - "1.16" + - "1.17" + - "1.18" + - "1.19" + - "1.20" + - "1.21" + - "1.22" + - "1.23" steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.7 - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v2 + uses: actions/setup-go@v5.0.2 with: go-version: ${{ matrix.go }} - - name: Cache Go modules - uses: actions/cache@v2 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Lint code run: | make lint