Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
mkdir -p ~/.local/bin
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-aarch64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-aarch64'
elif [ "$ARCH" = "x86_64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-amd64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-amd64'
else
echo "Unsupported architecture: $ARCH" && exit 1
fi
Expand All @@ -69,15 +69,24 @@ jobs:
- name: Install pkl on Windows
if: matrix.platform == 'windows-latest'
run: |
Invoke-WebRequest 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-windows-amd64.exe' -OutFile pkl.exe
Invoke-WebRequest 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-windows-amd64.exe' -OutFile pkl.exe
echo "PATH=$env:GITHUB_WORKSPACE;$env:PATH" >> $env:GITHUB_ENV
.\pkl.exe --version
shell: pwsh
# Run tests
- name: Run the tests
run: make test
run: |
go test -short -v -coverprofile=coverage.out -covermode=atomic ./... | tee -a test.out
go tool cover -func=coverage.out | tee -a test.out
grep -E "^[[:alnum:]/._-]+\.go:" coverage.out >> test.out
shell: bash

- name: Generate badges
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: ${{ secrets.GIST_ID }}
token: ${{ secrets.GIST_TOKEN }}

# end2end:
# strategy:
# matrix:
Expand All @@ -98,7 +107,7 @@ jobs:
# uses: Cyberboss/install-winget@v1
# - name: Install pkl
# run: |
# curl -L -o /c/Users/runneradmin/.local/bin/pkl.exe 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-windows-amd64.exe'
# curl -L -o /c/Users/runneradmin/.local/bin/pkl.exe 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-windows-amd64.exe'
# chmod +x /c/Users/runneradmin/.local/bin/pkl.exe
# /c/Users/runneradmin/.local/bin/pkl.exe --version
# shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
ARCH=$(uname -m)
echo "Detected architecture: $ARCH"
if [ "$ARCH" = "arm64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-aarch64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-aarch64'
elif [ "$ARCH" = "x86_64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-amd64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-amd64'
else
echo "Unsupported architecture: $ARCH" && exit 1
fi
Expand All @@ -56,9 +56,9 @@ jobs:
ARCH=$(uname -m)
echo "Detected architecture: $ARCH"
if [ "$ARCH" = "arm64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-macos-aarch64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-macos-aarch64'
elif [ "$ARCH" = "x86_64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-macos-amd64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-macos-amd64'
else
echo "Unsupported architecture: $ARCH" && exit 1
fi
Expand All @@ -71,7 +71,7 @@ jobs:
if: matrix.platform == 'windows-latest'
run: |
Write-Host "Downloading PKL..."
Invoke-WebRequest 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-windows-amd64.exe' -OutFile pkl.exe
Invoke-WebRequest 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-windows-amd64.exe' -OutFile pkl.exe
if (!(Test-Path .\pkl.exe)) {
Write-Host "pkl.exe not found!"
exit 1
Expand Down Expand Up @@ -264,7 +264,7 @@ jobs:
run: curl -LsSf https://raw.githubusercontent.com/kdeps/kdeps/refs/heads/main/install.sh | sh -s -- -d ${GITHUB_REF##*/}
- name: Install pkl
run: |
curl -L -o /c/Users/runneradmin/.local/bin/pkl.exe 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-windows-amd64.exe'
curl -L -o /c/Users/runneradmin/.local/bin/pkl.exe 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-windows-amd64.exe'
chmod +x /c/Users/runneradmin/.local/bin/pkl.exe
/c/Users/runneradmin/.local/bin/pkl.exe --version
shell: bash
Expand Down Expand Up @@ -306,9 +306,9 @@ jobs:
run: |
ARCH=$(uname -m)
if [ "$ARCH" = "aarch64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-aarch64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-aarch64'
elif [ "$ARCH" = "x86_64" ]; then
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.27.2/pkl-linux-amd64'
curl -L -o ~/.local/bin/pkl 'https://github.com/apple/pkl/releases/download/0.28.1/pkl-linux-amd64'
else
echo "Unsupported architecture: $ARCH" && exit 1
fi
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -216,4 +216,9 @@ bin/
# Added by goreleaser init:
dist/

kdeps
coverage.html
pkg/**/**/*.txt
pkg/**/**/*.yaml
pkg/**/**/*.cover
pkg/**/**/*.cov
*.cov
Loading
Loading