Skip to content

Commit

Permalink
reuse workflow for .github/workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Sep 17, 2024
1 parent fdc41b5 commit 1c225bb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/solidity-foundry-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ jobs:
steps:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
fetch-depth: 0

- name: Extract Foundry version
id: extract-foundry-version
Expand All @@ -135,7 +133,7 @@ jobs:
- name: Should skip code coverage report
id: skip-code-coverage
run: |
if [ "${{ inputs.product }}" = "automation" || "${{ inputs.product }}" = "vrf" || "${{ inputs.product }}" = "functions" ]; then
if [[ "${{ inputs.product }}" = "automation" || "${{ inputs.product }}" = "vrf" || "${{ inputs.product }}" = "functions" ]]; then
echo "skip_code_coverage=true" >> $GITHUB_OUTPUT
else
echo "skip_code_coverage=false" >> $GITHUB_OUTPUT
Expand All @@ -150,7 +148,7 @@ jobs:
id-token: write
contents: read
needs: [changes, prepare-workflow-inputs]
uses: smartcontractkit/chainlink-github-actions/solidity/review-artifacts-workflow/review-artifacts.yml@426f5b4184fc300fe80925e01cbcb78afe499b38
uses: smartcontractkit/chainlink-github-actions/.github/workflows/review-artifacts.yml@ecfe3bc881d5f9933a9505707e60dca7b496d733
with:
product: ${{ inputs.product }}
commit_to_use: ${{ inputs.commit_to_use }}
Expand All @@ -162,7 +160,12 @@ jobs:
foundry_version: ${{ needs.prepare-workflow-inputs.outputs.foundry_version }}
contracts_directory: './contracts'
skip_code_coverage: ${{ needs.prepare-workflow-inputs.outputs.skip_code_coverage }}
default_solc_version: '0.8.19'
jira_host: ${{ vars.JIRA_HOST }}
slither_config_file_path: "contracts/configs/slither/.slither.config-artifacts.json"
secrets:
jira_username: ${{ secrets.JIRA_USERNAME }}
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}

#
# gather-basic-info:
# name: Gather basic info
Expand Down

0 comments on commit 1c225bb

Please sign in to comment.