Skip to content

Commit

Permalink
try fix action call
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 1, 2024
1 parent eb0e298 commit 74040d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .github/actions/install-and-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
name: "Checkout, Install and Setup Dependencies"
description: "Checkout code and install dependencies like Go, Node, Java, Python, etc."
inputs:
ref:
description: 'The ref to checkout'
required: true

runs:
using: "composite"
steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
# Install dependencies
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ jobs:
- name: 'Git commands Integration'
testFlags: '--test.git'
steps:
- name: Checkout, Install and Setup Dependencies
uses: ./actions/install-and-setup
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install and Setup Dependencies
uses: ./.github/actions/install-and-setup
# Test
- name: Run tests
run: go test -v github.com/jfrog/jfrog-cli-security --race --timeout 30m -cover ${{ matrix.os == 'ubuntu' && matrix.suite.ubuntuTestFlags || matrix.suite.testFlags }} --jfrog.url=${{ secrets.PLATFORM_URL }} --jfrog.adminToken=${{ secrets.PLATFORM_ADMIN_TOKEN }} --test.containerRegistry=${{ secrets.CONTAINER_REGISTRY }} --ci.runId=${{ runner.os }}-sec-test
Expand Down

0 comments on commit 74040d9

Please sign in to comment.