mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-12-03 15:22:26 -08:00
Bumps the minor-and-patches group with 6 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.0` | `6.0.1` | | [asdf-vm/actions](https://github.com/asdf-vm/actions) | `4.0.0` | `4.0.1` | | [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) | `9.1.0` | `9.2.0` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.9.0` | `5.10.0` | | [docker/bake-action](https://github.com/docker/bake-action) | `6.9.0` | `6.10.0` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `2.4.2` | `2.5.0` | Updates `actions/checkout` from 6.0.0 to 6.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/1af3b93b6815bc44a9784bd300feb67ff0d1eeb3...8e8c483db84b4bee98b60c0593521ed34d9990e8) Updates `asdf-vm/actions` from 4.0.0 to 4.0.1 - [Release notes](https://github.com/asdf-vm/actions/releases) - [Changelog](https://github.com/asdf-vm/actions/blob/master/CHANGELOG.md) - [Commits](https://github.com/asdf-vm/actions/compare/v4...b7bcd026f18772e44fe1026d729e1611cc435d47) Updates `golangci/golangci-lint-action` from 9.1.0 to 9.2.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/e7fa5ac41e1cf5b7d48e45e42232ce7ada589601...1e7e51e771db61008b38414a730f564565cf7c20) Updates `docker/metadata-action` from 5.9.0 to 5.10.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](https://github.com/docker/metadata-action/compare/318604b99e75e41977312d83839a89be02ca4893...c299e40c65443455700f0fdfc63efafe5b349051) Updates `docker/bake-action` from 6.9.0 to 6.10.0 - [Release notes](https://github.com/docker/bake-action/releases) - [Commits](https://github.com/docker/bake-action/compare/3acf805d94d93a86cce4ca44798a76464a75b88c...5be5f02ff8819ecd3092ea6b2e6261c31774f2b4) Updates `softprops/action-gh-release` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/5be0e66d93ac7ed76da52eca8bb058f665c3a5fe...a06a81a03ee405af7f2048a818ed3f03bbf83c7b) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patches - dependency-name: asdf-vm/actions dependency-version: 4.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patches - dependency-name: golangci/golangci-lint-action dependency-version: 9.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches - dependency-name: docker/metadata-action dependency-version: 5.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches - dependency-name: docker/bake-action dependency-version: 6.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches - dependency-name: softprops/action-gh-release dependency-version: 2.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patches ... Signed-off-by: dependabot[bot] <[email protected]>
124 lines
3.5 KiB
YAML
124 lines
3.5 KiB
YAML
# Copyright 2025 New Vector Ltd
|
|
# Copyright 2025 Element Creations Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
name: matrix-tools linting and building
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'matrix-tools-*'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}/matrix-tools
|
|
GO_VERSION: "1.24"
|
|
|
|
jobs:
|
|
gofmt:
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
|
|
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
|
|
with:
|
|
go-version: "${{ env.GO_VERSION }}"
|
|
|
|
- name: gofmt check
|
|
run: |
|
|
unformatted_files="$(gofmt -l matrix-tools)"
|
|
if [ "$unformatted_files" != "" ]; then
|
|
echo "There are .go files that aren't formatted correctly:"
|
|
echo "$unformatted_files"
|
|
exit 1
|
|
fi
|
|
|
|
tests:
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
|
|
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6
|
|
with:
|
|
go-version: "${{ env.GO_VERSION }}"
|
|
|
|
- uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v8
|
|
with:
|
|
working-directory: matrix-tools
|
|
args: -v --show-stats --no-config --modules-download-mode readonly
|
|
|
|
- uses: GoTestTools/gotestfmt-action@8b4478c7019be847373babde9300210e7de34bfb # v2
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Run tests
|
|
run: cd matrix-tools && go test -v -json ./... 2>&1 | gotestfmt
|
|
|
|
# Build our application docker images in parallel.
|
|
docker-build-and-push:
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
name: Build matrix-tools container image
|
|
needs:
|
|
- tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
|
|
|
|
- name: Login to GHCR
|
|
if: ${{ github.ref_type == 'tag' }}
|
|
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Get Release Tag
|
|
if: github.ref_type == 'tag' # Only for GitHub releases
|
|
run: |
|
|
echo "Converting $GITHUB_REF to tags"
|
|
echo "VERSION=${GITHUB_REF#refs\/tags\/matrix-tools-}" >> "$GITHUB_ENV"
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
|
|
with:
|
|
images: |
|
|
${{ env.REGISTRY_IMAGE }}
|
|
flavor: |
|
|
latest=false
|
|
tags: |
|
|
type=raw,value=${{ env.VERSION }},enable=${{ github.ref_type == 'tag' }}
|
|
type=sha,prefix=sha-,format=short
|
|
labels: |
|
|
org.opencontainers.image.licenses=AGPL-3.0-only
|
|
annotations: |
|
|
org.opencontainers.image.licenses=AGPL-3.0-only
|
|
|
|
- name: Build and Push Image
|
|
uses: docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6
|
|
with:
|
|
push: ${{ github.ref_type == 'tag' }}
|
|
files: |
|
|
docker-bake.hcl
|
|
cwd://${{ steps.meta.outputs.bake-file }}
|
|
targets: matrix-tools
|
|
set: |
|
|
*.output=type=image
|
|
*.platform=linux/amd64,linux/arm64
|