Skip to content

Commit

Permalink
update pipeline version, use custom pruning script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Sep 18, 2024
1 parent f0ec6fe commit f810e7a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
repository: smartcontractkit/chainlink-github-actions
ref: 21b8f9d34894ba33e2996f7d242bf87677ad5bae
ref: 92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
path: .chainlink-github-actions

- name: Update Jira ticket for core
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
- name: Setup NodeJS
if: ${{ needs.filter.outputs.changes == 'true' }}
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
prod: "true"
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
- name: Setup NodeJS
if: ${{ needs.filter.outputs.changes == 'true' }}
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
prod: "true"
Expand Down Expand Up @@ -448,7 +448,7 @@ jobs:
- name: Install protoc-gen-go-wsrpc
run: curl https://github.com/smartcontractkit/wsrpc/raw/main/cmd/protoc-gen-go-wsrpc/protoc-gen-go-wsrpc --output $HOME/go/bin/protoc-gen-go-wsrpc && chmod +x $HOME/go/bin/protoc-gen-go-wsrpc
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
- name: make generate
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/solidity-foundry-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
generate-artifacts:
name: Generate Solidity Review Artifacts
needs: [changes, prepare-workflow-inputs]
uses: smartcontractkit/chainlink-github-actions/.github/workflows/review-artifacts.yml@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/.github/workflows/review-artifacts.yml@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
product: ${{ inputs.product }}
commit_to_use: ${{ inputs.commit_to_use }}
Expand All @@ -158,11 +158,12 @@ jobs:
changeset_files: ${{ needs.changes.outputs.changeset_files }}
foundry_version: ${{ needs.prepare-workflow-inputs.outputs.foundry_version }}
contracts_directory: './contracts'
generate_code_coverage: ${{ needs.prepare-workflow-inputs.outputs.generate_code_coverage }}
generate_code_coverage: ${{ needs.prepare-workflow-inputs.outputs.generate_code_coverage == 'true' }}
link_with_jira: ${{ inputs.link_with_jira }}
jira_host: ${{ vars.JIRA_HOST }}
install_semver: false
slither_config_file_path: "contracts/configs/slither/.slither.config-artifacts.json"
slither_config_file_path: 'contracts/configs/slither/.slither.config-artifacts.json'
lcov_prune_script_path: 'scripts/lcov_prune'
secrets:
jira_username: ${{ secrets.JIRA_USERNAME }}
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}
16 changes: 8 additions & 8 deletions .github/workflows/solidity-foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
if: ${{ contains(fromJson(needs.changes.outputs.all_changes), matrix.product.name)
|| contains(fromJson(needs.changes.outputs.all_changes), 'shared')
|| needs.changes.outputs.non_src_changes == 'true' }}
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand Down Expand Up @@ -280,11 +280,11 @@ jobs:
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
repository: smartcontractkit/chainlink-github-actions
ref: 21b8f9d34894ba33e2996f7d242bf87677ad5bae
ref: 92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
path: ./chainlink-github-actions

- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand All @@ -299,13 +299,13 @@ jobs:
python-version: '3.8'

- name: Install solc-select and solc
uses: smartcontractkit/chainlink-github-actions/solidity/setup-solc-select@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-solc-select@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
to_install: '0.8.24'
to_use: '0.8.24'

- name: Install Slither
uses: smartcontractkit/chainlink-github-actions/solidity/setup-slither@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-slither@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416

- name: Run Slither
shell: bash
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
# since we have just checked out the repository again, we lose NPM dependencies installs previously, we need to install them again to compile contracts
- name: Setup NodeJS
if: needs.changes.outputs.sol_mod_only == 'true'
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand Down Expand Up @@ -479,7 +479,7 @@ jobs:
done
- name: Validate if all Slither run for all contracts
uses: smartcontractkit/chainlink-github-actions/solidity/validate-solidity-artifacts@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/validate-solidity-artifacts@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
validate_slither_reports: 'true'
slither_reports_path: 'contracts/slither-reports-current'
Expand Down Expand Up @@ -567,7 +567,7 @@ jobs:

- name: Setup NodeJS
if: ${{ (contains(fromJson(needs.changes.outputs.all_changes), matrix.product.name) || needs.changes.outputs.non_src_changes == 'true') && matrix.product.setup.run-forge-fmt }}
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/solidity-hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
- name: Setup Hardhat
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/solidity-tracability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,15 @@ jobs:
exit 1
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

- name: Checkout Chainlink Github Actions repository
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
repository: smartcontractkit/chainlink-github-actions
ref: 21b8f9d34894ba33e2996f7d242bf87677ad5bae 21b8f9d34894ba33e2996f7d242bf87677ad5bae
ref: 92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
path: .chainlink-github-actions

- name: Setup git top level directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/solidity-wrappers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
uses: ./.github/actions/setup-go

- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
prod: "true"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
- name: Run Prepublish test
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Install diff-so-fancy
run: echo "$GITHUB_WORKSPACE/diff-so-fancy" >> $GITHUB_PATH
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
prod: "true"
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
- name: Run pnpm lint
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'
- name: Run prettier check
Expand All @@ -193,7 +193,7 @@ jobs:
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2

- name: Setup NodeJS
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@21b8f9d34894ba33e2996f7d242bf87677ad5bae
uses: smartcontractkit/chainlink-github-actions/solidity/setup-nodejs@92e2e0c30dc3cf91a6c73e17b7165c91b8f20416
with:
contracts_dir: './contracts'

Expand Down

0 comments on commit f810e7a

Please sign in to comment.