Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: xray enabled #34

Merged
merged 9 commits into from
Feb 26, 2024
Merged
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
39 changes: 35 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

env:
JFROG_CLI_BUILD_NAME: ${{ github.repository }}
# JFROG_SERVER:
JFROG_SERVER: eng-generic-dev-local
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}

on:
Expand All @@ -24,6 +24,10 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Build library
run: |
go build

- name: Run unit tests
run: |
Expand All @@ -37,8 +41,13 @@ jobs:
name: coverage
path: api/coverage.out

- name: Save built library
uses: actions/upload-artifact@v4
with:
name: library
path: go-client-library-passwordsafe

sonarqube:
# Sonar scan is not required for dependabot PRs
needs: build
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -91,9 +100,31 @@ jobs:
x-ray:
needs: [build, sonarqube]
runs-on: ubuntu-latest
if: false
steps:

- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0

- name: Jfrog setup
uses: jfrog/setup-jfrog-cli@v3
env:
JF_ENV_1: ${{ secrets.ARTIFACTORY_DEPLOYER }}

- name: Setting up artifactory
run: |
mkdir go-library-passwordsafe

- name: Download library binary
uses: actions/download-artifact@v4
with:
name: library
path: go-library-passwordsafe

- name: Send artifacts to Jfrog
run: |
jfrog rt u "go-library-passwordsafe/*" ${{ env.JFROG_SERVER}}

- name: Publish Build Information
run: |
jfrog rt build-add-git
Expand Down
Loading