Skip to content

Commit

Permalink
Apply latest pipeline-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne committed Sep 21, 2024
1 parent b132326 commit 272bccb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 45 deletions.
49 changes: 6 additions & 43 deletions .github/workflows/pb-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,55 +169,18 @@ jobs:
PACKAGES: ttl.sh/test-${{ steps.version.outputs.version }}
TTL_SH_PUBLISH: "true"
VERSION: 1h
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: liberica
java-version: "17"
- name: Run Integration Tests
run: |
#!/usr/bin/env bash
set -euo pipefail
go test ./integration/... -run Integration
BP_UNDER_TEST=ttl.sh/${PACKAGE}-${VERSION}:1h make integration
env:
PACKAGE: test
VERSION: ${{ steps.version.outputs.version }}
unit:
name: Unit Test
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: ${{ env.HOME }}/go/pkg/mod
restore-keys: ${{ runner.os }}-go-
- uses: actions/setup-go@v5
with:
go-version: "1.23"
- name: Install richgo
run: |
#!/usr/bin/env bash
set -euo pipefail
echo "Installing richgo ${RICHGO_VERSION}"
mkdir -p "${HOME}"/bin
echo "${HOME}/bin" >> "${GITHUB_PATH}"
curl \
--location \
--show-error \
--silent \
"https://github.com/kyoh86/richgo/releases/download/v${RICHGO_VERSION}/richgo_${RICHGO_VERSION}_linux_amd64.tar.gz" \
| tar -C "${HOME}"/bin -xz richgo
env:
RICHGO_VERSION: 0.3.10
- name: Run Tests
run: |
#!/usr/bin/env bash
set -euo pipefail
richgo test ./... -run Unit
env:
RICHGO_FORCE_COLOR: "1"
4 changes: 2 additions & 2 deletions .github/workflows/pb-update-go.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Update Go
"on":
schedule:
- cron: 42 2 * * 1
- cron: 27 2 * * 1
workflow_dispatch: {}
jobs:
update:
Expand All @@ -25,7 +25,7 @@ jobs:
exit 1
fi
OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2)
OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2 | cut -d '.' -f 1-2)
go mod edit -go="$GO_VERSION"
go mod tidy
Expand Down

0 comments on commit 272bccb

Please sign in to comment.