Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalano committed Dec 16, 2023
1 parent 26c9dc5 commit 6dce805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,18 @@ jobs:
run: go mod tidy && git diff --exit-code
- name: Run unit tests
run: go test ./...
# - name: Build with Goreleaser
# uses: goreleaser/goreleaser-action@v2
# with:
# version: latest
# args: release --snapshot --skip publish --clean

- uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
- name: Build with Goreleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --timeout=1h --snapshot --clean
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}



args: release --snapshot --skip-publish --rm-dist
- name: Setup BATS framework
run: sudo npm install -g bats
- name: kubectx (Go) integration tests
run: COMMAND=./dist/kubectx_linux_amd64_v1/kubectx bats test/kubectx.bats
- name: kubens (Go) integration tests
run: COMMAND=./dist/kubens_linux_amd64_v1/kubens bats test/kubens.bats
# - name: Publish Snaps to the Snap Store (edge channel)
# run: for snap in $(ls ./dist/*.snap); do snapcraft upload --release=edge $snap; done
# env:
# SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
- name: Publish Snaps to the Snap Store (edge channel)
run: for snap in $(ls ./dist/*.snap); do snapcraft upload --release=edge $snap; done
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Setup Snapcraft
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
- id: create-snapcraft-cache-dirs
- name: Setup Snapcraft
run: |
mkdir -p $HOME/.cache/snapcraft/download
mkdir -p $HOME/.cache/snapcraft/stage-packages
Expand All @@ -51,5 +51,4 @@ jobs:
- name: Publish Snaps to the Snap Store (stable channel)
run: for snap in $(ls dist/*.snap); do snapcraft upload --release=stable $snap; done
env:
SNAPCRAFT_STORE_AUTH: candid
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}

0 comments on commit 6dce805

Please sign in to comment.