Skip to content

Merge pull request #25 from rudderlabs/dependabot/github_actions/code… #86

Merge pull request #25 from rudderlabs/dependabot/github_actions/code…

Merge pull request #25 from rudderlabs/dependabot/github_actions/code… #86

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- "release/*"
pull_request:
jobs:
test:
name: Test
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v4
with:
# In order:
# * Module download cache
# * Build cache (Linux)
# * Build cache (Mac)
# * Build cache (Windows)
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
- run: go version
- run: go mod download # Not required, used to segregate module download vs test times
- run: make test
- uses: codecov/codecov-action@v4