diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 7d83ca5..9ea41db 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -6,4 +6,14 @@ ":semanticCommits", ], rebaseWhen: "behind-base-branch", + customManagers: [ + { + customType: "regex", + description: "Update _version ARGs and ENVs in Earthfile", + managerFilePatterns: ["/^Earthfile$/"], + matchStrings: [ + "# renovate: datasource=(?[a-z-]+?)(?: depName=(?.+?))? packageName=(?.+?)(?: versioning=(?[a-z-]+?))?\\s+(?:ENV|ARG) .+?\\_version=(?.+?)\\s", + ], + }, + ], } diff --git a/.github/workflows/ci.yaml b/.github/workflows/check.yaml similarity index 84% rename from .github/workflows/ci.yaml rename to .github/workflows/check.yaml index 60583ec..e808c4c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/check.yaml @@ -1,4 +1,4 @@ -name: CI +name: Check on: push: @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-24.04-arm strategy: matrix: - go-version: ["1.23", "1.24", "1.25rc2"] + go-version: ["1.23", "1.24", "1.25"] fail-fast: false env: FORCE_COLOR: 1 @@ -21,7 +21,7 @@ jobs: - name: Go ${{ matrix.go-version }} run: echo "golang_version=${{ matrix.go-version }}" > .arg - name: Generate cldr.go - if: ${{ matrix.go-version == '1.24' }} + if: ${{ matrix.go-version == '1.25' }} run: | earthly --strict +generate if ! git diff --quiet internal/cldr/data.go; then @@ -30,7 +30,7 @@ jobs: exit 1 fi - name: Lint - if: ${{ matrix.go-version == '1.24' }} + if: ${{ matrix.go-version == '1.25' }} run: earthly --ci +lint - name: Test Unit run: earthly --ci +test diff --git a/Earthfile b/Earthfile index 269772d..1cfb0be 100644 --- a/Earthfile +++ b/Earthfile @@ -1,6 +1,7 @@ VERSION 0.8 -ARG go_version=1.24.5 -FROM golang:$go_version-alpine3.22 +# renovate: datasource=docker packageName=golang +ARG go_version=1.24.5-alpine3.22 +FROM golang:$go_version WORKDIR /intl # init prepares the project for local development @@ -21,8 +22,12 @@ cldr: # testdata generates test cases and saves to tests.json testdata: + # renovate: datasource=docker packageName=node ARG node_version=23.11.0 FROM node:$node_version-alpine + # renovate: datasource=npm packageName=npm + ARG npm_version=9.6.1 + RUN npm i -g npm@$npm_version WORKDIR /intl COPY testdata.js . COPY --dir +cldr/cldr/common/main .cldr/common/main @@ -64,6 +69,7 @@ test: # lint runs all linters for golang lint: + # renovate: datasource=docker packageName=golangci-lint ARG golangci_lint_version=2.3.0 FROM golangci/golangci-lint:v$golangci_lint_version-alpine WORKDIR /intl