Skip to content

Commit

Permalink
Update app-pipeline.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
  • Loading branch information
gitworkflows authored Feb 12, 2025
1 parent 2abd66a commit 685e29d
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/app-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Run Tests
run: make test

build-artifacts:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -63,12 +63,39 @@ jobs:
- name: Install dependencies
run: go mod download

# Add a step to build or install license_serializer
- name: Build license_serializer
run: |
mkdir -p .tmp/bin
go build -o .tmp/bin/license_serializer ./path/to/license_serializer
build-artifacts:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18.x]
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.18.x'

- name: Cache Go dependencies
id: package-cache-go-dependencies
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod/cache
key: ${{ runner.os }}-go-prod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-prod-
- name: Install dependencies
run: go mod download

- name: Build snapshot artifacts
run: make ci-build-snapshot-packages

Expand All @@ -78,9 +105,8 @@ jobs:
name: artifacts
path: dist


test-linux-artifacts:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
needs: build-artifacts
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -101,7 +127,7 @@ jobs:
run: make ci-test-linux-run

test-mac-artifacts:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
needs: build-artifacts
needs: build
runs-on: macos-latest
steps:
- name: Checkout code
Expand All @@ -122,7 +148,7 @@ jobs:
run: make ci-test-mac-run

test-windows-artifacts:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
needs: build-artifacts
needs: build
runs-on: windows-latest
steps:
- name: Checkout code
Expand All @@ -145,6 +171,9 @@ jobs:
release:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
needs: [test, build-artifacts, test-linux-artifacts, test-mac-artifacts, test-windows-artifacts]
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.18.x]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout code
Expand Down

0 comments on commit 685e29d

Please sign in to comment.