Compare commits
3 Commits
195b936de6
...
4a8ef7e1f6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a8ef7e1f6 | ||
|
|
b3f66e9e2e | ||
|
|
9d6dacb0f8 |
@@ -11,6 +11,7 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /cache/tools
|
||||||
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
||||||
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
||||||
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
||||||
@@ -27,14 +28,31 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Get go-hashfiles
|
||||||
|
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
|
id: hash-go
|
||||||
|
with:
|
||||||
|
patterns: |-
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
|
||||||
|
- name: Cache go
|
||||||
|
id: cache-go
|
||||||
|
uses: https://github.com/actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |-
|
||||||
|
/root/go/pkg/mod
|
||||||
|
/root/.cache/go-build
|
||||||
|
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
restore-keys: |-
|
||||||
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|
||||||
- name: Ensure tooling is available
|
- name: Ensure tooling is available
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if ! command -v aws >/dev/null 2>&1; then
|
if ! command -v aws >/dev/null 2>&1; then
|
||||||
sudo apt-get update
|
pip install awscli
|
||||||
sudo apt-get install -y awscli jq
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command -v jq >/dev/null 2>&1; then
|
if ! command -v jq >/dev/null 2>&1; then
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /cache/tools
|
||||||
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
ARTEFACT_BUCKET_NAME: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
||||||
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
ARTEFACT_BUCKET_ENDPONT: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
||||||
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
ARTEFACT_BUCKET_REGION: ${{ vars.ARTEFACT_BUCKET_REGION }}
|
||||||
@@ -27,13 +28,31 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Get go-hashfiles
|
||||||
|
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
|
id: hash-go
|
||||||
|
with:
|
||||||
|
patterns: |-
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
|
||||||
|
- name: Cache go
|
||||||
|
id: cache-go
|
||||||
|
uses: https://github.com/actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |-
|
||||||
|
/root/go/pkg/mod
|
||||||
|
/root/.cache/go-build
|
||||||
|
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
restore-keys: |-
|
||||||
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|
||||||
- name: Ensure tooling is available
|
- name: Ensure tooling is available
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if ! command -v aws >/dev/null 2>&1; then
|
if ! command -v aws >/dev/null 2>&1; then
|
||||||
sudo apt-get update
|
pip install awscli
|
||||||
sudo apt-get install -y awscli
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run full unit test suite with coverage
|
- name: Run full unit test suite with coverage
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUNNER_TOOL_CACHE: /cache/tools
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -30,6 +32,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Get go-hashfiles
|
||||||
|
uses: https://gitea.com/actions/go-hashfiles@v0.0.1
|
||||||
|
id: hash-go
|
||||||
|
with:
|
||||||
|
patterns: |-
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
|
||||||
|
- name: Cache go
|
||||||
|
id: cache-go
|
||||||
|
uses: https://github.com/actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |-
|
||||||
|
/root/go/pkg/mod
|
||||||
|
/root/.cache/go-build
|
||||||
|
key: go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
restore-keys: |-
|
||||||
|
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Git operations for clone and track migrated to `go-git`.
|
- Git operations for clone and track migrated to `go-git`.
|
||||||
- Build and behavior workflows now produce and run the `gosick` binary name.
|
- Build and behavior workflows now produce and run the `gosick` binary name.
|
||||||
- CI validation is unified into push events, running behavior tests only on `main` pushes.
|
- CI validation is unified into push events, running behavior tests only on `main` pushes.
|
||||||
|
- Gitea CI workflows now cache Go modules and build artifacts using a shared runner tool cache.
|
||||||
- Gitea workflow and README badge updated from `push-unit-tests` to `push-validation`.
|
- Gitea workflow and README badge updated from `push-unit-tests` to `push-validation`.
|
||||||
- CLI help now uses the invoked binary name (defaulting to `gosick`) in usage output.
|
- CLI help now uses the invoked binary name (defaulting to `gosick`) in usage output.
|
||||||
- CLI help description now reflects Homesick's purpose for managing precious dotfiles.
|
- CLI help description now reflects Homesick's purpose for managing precious dotfiles.
|
||||||
|
|||||||
Reference in New Issue
Block a user