feat: add checksum validation to KCL packages #104
Workflow file for this run
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
name: Test Publish Package | |
on: | |
pull_request: | |
paths: | |
- "**.mod" | |
jobs: | |
publish_pkg_local: | |
runs-on: ubuntu-latest | |
name: Publish packages to local registry | |
steps: | |
- name: Install kcl | |
run: wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v41 | |
- name: test | |
run: | | |
export KPM_REG="localhost:5001" | |
export KPM_REPO="test" | |
export LOGIN_WITH_KCL=1 | |
./scripts/reg.sh | |
kcl registry login -u test -p 1234 localhost:5001 | |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | |
./scripts/push_pkg_from.sh $file | |
done |