Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostloda committed Feb 28, 2025
1 parent e94f81b commit a634613
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/check-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
env:
# Common versions
GO_VERSION: "1.20"
PROJECT_PATH: "lifecycle"
PROJECT_PATH: "./lifecycle"

jobs:
coverage:
Expand All @@ -39,10 +39,8 @@ jobs:
- name: Install Dependencies
run: sudo apt update && sudo apt install -y libgpgme-dev libbtrfs-dev libdevmapper-dev

- name: CD to Project Directory
run: cd ${{ env.PROJECT_PATH }}
- name: Run Coverage
run: make coverage
run: cd ${{ env.PROJECT_PATH }} && make coverage

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
3 changes: 2 additions & 1 deletion .github/workflows/check-format-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
env:
# Common versions
GO_VERSION: "1.23"
PROJECT_PATH: "./lifecycle"

jobs:
format-code:
Expand All @@ -39,7 +40,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: Format Code
run: make format
run: cd ${{ env.PROJECT_PATH }} && make format

- name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check-license.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
env:
# Common versions
GO_VERSION: "1.20"
PROJECT_PATH: "./lifecycle"

jobs:
check-license:
Expand All @@ -38,4 +39,4 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: Check License
run: make verify-license
run: cd ${{ env.PROJECT_PATH }} && make verify-license
5 changes: 3 additions & 2 deletions .github/workflows/import-patch-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Import Patch Images Package
env:
# Common versions
GO_VERSION: "1.20"
PROJECT_PATH: "./lifecycle"

on:
workflow_call:
Expand Down Expand Up @@ -91,12 +92,12 @@ jobs:
- name: Build Binaries
run: |
make build BINS=${{ matrix.binary }} PLATFORM=linux_${{ matrix.arch }}
cd ${{ env.PROJECT_PATH }} && make build BINS=${{ matrix.binary }} PLATFORM=linux_${{ matrix.arch }}
- name: Save Binaries
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary }}-${{ matrix.arch }}
path: bin/linux_${{ matrix.arch}}/${{ matrix.binary }}
path: ${{ env.PROJECT_PATH }}/bin/linux_${{ matrix.arch}}/${{ matrix.binary }}
test:
runs-on: ubuntu-24.04
if: ${{ (inputs.e2e == true) }}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a634613

Please sign in to comment.