Skip to content

chore(deps): update dependency golang/tools to v0.49.0 #401

chore(deps): update dependency golang/tools to v0.49.0

chore(deps): update dependency golang/tools to v0.49.0 #401

Workflow file for this run

name: CI
on:
push:
tags:
- v*
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
submodules: recursive
- name: Cleanup ubuntu image to free up space for GO build
run: |
if [ "$GITHUB_ACTIONS" = "true" ]; then
echo "Running in GitHub Actions, performing cleanup to free up space"
# echo "=== disk-usage for /usr Level 2 ==="
# sudo du -xh --exclude=/proc --max-depth=2 / | sort -hr
echo "free space: $(df -h . | tail -1 | awk '{print $4}')"
echo "=== Deleting un-needed framework/tool dirs ==="
sudo rm -rf /usr/local/.ghcup || true # haskell installer: ~6.4GB
sudo rm -rf /usr/share/dotnet || true # dotnet: ~4GB
sudo rm -rf /usr/share/swift || true # swift: ~3.2GB
sudo rm -rf /usr/lib/jvm || true # jvm: ~1.5GB
echo "free space after cleanup: $(df -h . | tail -1 | awk '{print $4}')"
# echo "=== Github Workspace Usage for $GITHUB_WORKSPACE ==="
# du -h --max-depth=1 "$GITHUB_WORKSPACE" | sort -hr
else
echo "Not running in GitHub Actions, skipping cleanup"
fi
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
with:
go-version-file: go.mod
- name: Install Task
uses: arduino/setup-task@c0bc642852239c2689f73f4ea6459c29405f3c52 # v3.0.0
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
# make verify aka check:
- name: Verify
run: |
# make revendor
task generate:tidy
task validate:lint
# make verify
task validate:vet
make test
- name: Build (fka component_descriptor_ocm)
run: |
make build
# creates only go builds
# task build:bin:build-raw
# in old pipeline "component_descriptor_ocm" was called which
# creates docker-images and component descriptor
# make build-resources
# TODO: used later for integration tests, should be there