Skip to content

ci/renovate: use shared renovate presets and actions #302

ci/renovate: use shared renovate presets and actions

ci/renovate: use shared renovate presets and actions #302

Workflow file for this run

name: Push/PR
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- run: |
make build
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
make test
build-container:
name: Build container image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build contianer
uses: docker/build-push-action@v6
with:
push: false
tags: ci.local/crocochrome:${{ github.sha }}
platforms: linux/amd64,linux/arm64
golangci:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false # Recommended by golangci-lint, undocumented why.
# Get golangci-lint version present in grafana-build-tools.
- id: version
run: |-
echo "golangci=$(make lint-version)" >> $GITHUB_OUTPUT
# Use the golangci-lint action, which provides Github-specific features such as diff annotations.
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6
with:
version: ${{ steps.version.golangci }}