Skip to content

Merge pull request #84 from dotwallet/dependabot/github_actions/maste… #309

Merge pull request #84 from dotwallet/dependabot/github_actions/maste…

Merge pull request #84 from dotwallet/dependabot/github_actions/maste… #309

Workflow file for this run

name: run-go-tests
env:
GO111MODULE: on
on:
pull_request:
branches:
- "*"
push:
branches:
- "*"
# schedule:
# - cron: '1 4 * * *'
jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/go/pkg/mod # Module download cache
~/.cache/go-build # Build cache (Linux)
~/Library/Caches/go-build # Build cache (Mac)
'%LocalAppData%\go-build' # Build cache (Windows)
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter and tests
run: make test-ci
- name: Update code coverage
run: bash <(curl -s https://codecov.io/bash)