-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: runtime configuration for trunk correct to support all GOOS (…
…#161) - Improve debug logging. - Update deps.
- Loading branch information
1 parent
49fe77d
commit f2b89b4
Showing
225 changed files
with
14,076 additions
and
7,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: "\U0001F41B Bug Fix" | ||
body: Trunk upgrade was set to install, not upgrade tooling, so now it does what it should have done in the first place... before the coder in question got in way and didn't use his noggin. | ||
time: 2024-05-21T12:28:13.507347-05:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: "\U0001F41B Bug Fix" | ||
body: |- | ||
Since mage is typically not precompiled, the normal build directives for darwin, linux, windows don't apply. Instead, the logic needs to be just runtime evaluation in the same code not broken apart by files. | ||
This fixes it, improves logging for trunk setup, and does general dep upgrades. | ||
time: 2024-08-15T18:25:04.926744-05:00 |
3 changes: 3 additions & 0 deletions
3
.changes/unreleased/🔨 Developer Experience-20240815-183250.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: "\U0001F528 Developer Experience" | ||
body: Improve the error output with shellescape library so the command that failed can be rerun manually easily. | ||
time: 2024-08-15T18:32:50.392527-05:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
kind: "\U0001F528 Refactor" | ||
body: |- | ||
Trunk package now supports installing for windows, via the newer trunk npm based install, while maintaining the bash install for linux/darwin. | ||
If the project has a package.json, then it will install as dev dependency, otherwise as a global tool. | ||
No logic to detect alternative tooling such as yarn, bun, deno, etc unless requested. | ||
While trunk also supports this method of installation for Darwin/Linux, I've opted to keep it the same as before and use the bash install method for those regardless if package.json is there or not. | ||
time: 2024-05-21T12:29:29.380394-05:00 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
--- | ||
name: go-tests | ||
on: | ||
pull_request: | ||
push: | ||
tags: | ||
- v* | ||
workflow_dispatch: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: . | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | ||
- uses: aquaproj/aqua-installer@fd2089d1f56724d6456f24d58605e6964deae124 # v2.3.2 | ||
with: | ||
aqua_version: v2.27.4 | ||
enable_aqua_install: true | ||
# aqua_opts: "" | ||
env: | ||
# AQUA_CONFIG: '${{ github.workspace }}/aqua.yaml' | ||
AQUA_LOG_LEVEL: debug | ||
AQUA_OPTS: | ||
"" | ||
# working_directory: "${{ github.workspace }}" | ||
|
||
# - name: aqua-install | ||
# run: | | ||
# curl -sSfL https://raw.githubusercontent.com/aquaproj/aqua-installer/v1.1.2/aqua-installer | bash -s -- -i /usr/local/bin/aqua | ||
# # echo "$HOME/.local/share/aquaproj-aqua/bin" >> $GITHUB_PATH | ||
# # [[ -e "${AQUA_CONFIG}" ]] && echo "✅ AQUA_CONFIG: ${AQUA_CONFIG} exists" || echo "::error ❗ unable to validate the target file: ${AQUA_CONFIG} exists" | ||
# ls -lla "${{ github.workspace }}" | ||
# env: | ||
# AQUA_CONFIG: '${{ github.workspace }}/aqua.yaml' | ||
# AQUA_LOG_LEVEL: debug | ||
# AQUA_OPTS: "" | ||
- name: env-config-go | ||
run: | | ||
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
- name: Setup Golang caches | ||
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | ||
with: | ||
path: | | ||
${HOME}/.cache/go-build | ||
${HOME}/go/pkg/mod | ||
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-golang- | ||
- name: mage-init | ||
run: | | ||
export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua:${PATH}" | ||
export PATH="$(go env GOPATH)/bin:${PATH}" | ||
# aqua install # --only-link | ||
mage init | ||
- name: mage-testsum | ||
run: | | ||
export PATH="${AQUA_ROOT_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/aquaproj-aqua}/bin/aqua:${PATH}" | ||
export PATH="$(go env GOPATH)/bin:${PATH}" | ||
mage go:testsum ./... | ||
env: | ||
# Race conditions will be hit due to the cli driven tasks and binaries being called. | ||
GOTEST_DISABLE_RACE: 1 | ||
GOTESTS: "slow" | ||
GOTEST_FLAGS: "--tags=integration" | ||
|
||
- name: Upload coverage reports to Codecov | ||
run: | | ||
# improved codecov with signature verification | ||
curl https://uploader.codecov.io/verification.gpg | gpg --no-default-keyring --keyring trustedkeys.gpg --import # One-time step | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig | ||
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM | ||
shasum -a 256 -c codecov.SHA256SUM | ||
chmod +x codecov | ||
./codecov -t ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.