Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into wordpress-plugins-cat…
Browse files Browse the repository at this point in the history
…aloger

Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
  • Loading branch information
wagoodman committed Nov 21, 2023
2 parents 131311f + d4733fa commit f65fb39
Show file tree
Hide file tree
Showing 727 changed files with 30,170 additions and 11,383 deletions.
96 changes: 96 additions & 0 deletions .binny.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
tools:
- name: binny
version:
want: v0.6.2
method: github-release
with:
repo: anchore/binny

- name: quill
version:
want: v0.4.1
method: github-release
with:
repo: anchore/quill

- name: golangci-lint
version:
want: v1.55.2
method: github-release
with:
repo: golangci/golangci-lint

- name: glow
version:
want: v1.5.1
method: github-release
with:
repo: charmbracelet/glow

- name: cosign
version:
want: v2.2.1
method: github-release
with:
repo: sigstore/cosign

- name: yajsv
version:
want: v1.4.1
method: github-release
with:
repo: neilpa/yajsv

- name: goreleaser
version:
want: v1.22.1
method: github-release
with:
repo: goreleaser/goreleaser

- name: gosimports
version:
want: v0.3.8
method: github-release
with:
repo: rinchsan/gosimports

- name: chronicle
version:
want: v0.8.0
method: github-release
with:
repo: anchore/chronicle

- name: bouncer
version:
want: v0.4.0
method: github-release
with:
repo: wagoodman/go-bouncer

- name: benchstat
version:
want: latest
method: go-proxy
with:
module: golang.org/x/perf
allow-unresolved-version: true
method: go-install
with:
entrypoint: cmd/benchstat
module: golang.org/x/perf

- name: task
version:
want: v3.31.0
method: github-release
with:
repo: go-task/task

- name: gh
version:
want: v2.39.1
method: github-release
with:
repo: cli/cli
29 changes: 18 additions & 11 deletions .github/actions/bootstrap/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,47 @@ inputs:
description: "Go version to install"
required: true
default: "1.21.x"
go-dependencies:
description: "Download go dependencies"
required: true
default: "true"
cache-key-prefix:
description: "Prefix all cache keys with this value"
required: true
default: "831180ac25"
build-cache-key-prefix:
description: "Prefix build cache key with this value"
default: "1ac8281053"
compute-fingerprints:
description: "Compute test fixture fingerprints"
required: true
default: "f8b6d31dea"
default: "true"
bootstrap-apt-packages:
description: "Space delimited list of tools to install via apt"
default: "libxml2-utils"


runs:
using: "composite"
steps:
# note: go mod and build is automatically cached on default with v4+
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0
if: inputs.go-version != ''
with:
go-version: ${{ inputs.go-version }}

- name: Restore tool cache
id: tool-cache
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
with:
path: ${{ github.workspace }}/.tmp
key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-tool-${{ hashFiles('Makefile') }}
path: ${{ github.workspace }}/.tool
key: ${{ inputs.cache-key-prefix }}-${{ runner.os }}-tool-${{ hashFiles('.binny.yaml') }}

- name: (cache-miss) Bootstrap project tools
- name: Install project tools
shell: bash
if: steps.tool-cache.outputs.cache-hit != 'true'
run: make bootstrap-tools
run: make tools

- name: Bootstrap go dependencies
- name: Install go dependencies
if: inputs.go-dependencies == 'true'
shell: bash
run: make bootstrap-go
run: make ci-bootstrap-go

- name: Install apt packages
if: inputs.bootstrap-apt-packages != ''
Expand All @@ -49,6 +55,7 @@ runs:
DEBIAN_FRONTEND=noninteractive sudo apt update && sudo -E apt install -y ${{ inputs.bootstrap-apt-packages }}
- name: Create all cache fingerprints
if: inputs.compute-fingerprints == 'true'
shell: bash
run: make fingerprints

0 comments on commit f65fb39

Please sign in to comment.