Skip to content

Add 1.29.support

Add 1.29.support #26

Workflow file for this run

# Run unit tests.
# Starts for new and updated pull requests.
name: Unit tests
on:
pull_request:
types: [opened, synchronize]
jobs:
run_unit_tests:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v4
with:
go-version: '1.20'
id: go
- name: Check out addon-operator code
uses: actions/checkout@v3
- name: Restore Go modules
id: go-modules-cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
key: ${{ runner.os }}-gomod-${{ hashFiles('go.mod', 'go.sum') }}
restore-keys: |
${{ runner.os }}-gomod-
- name: Download Go modules
if: steps.go-modules-cache.outputs.cache-hit != 'true'
run: |
go mod download
echo -n "Go modules unpacked size is: " && du -sh $HOME/go/pkg/mod
- name: Run unit tests
run: |
export GOOS=linux
go test ./...