Bump aws-actions/configure-aws-credentials from 3.0.2 to 4.0.1 #44069
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Solidity | |
on: | |
merge_group: | |
push: | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
changes: | |
name: Detect changes | |
runs-on: ubuntu-latest | |
outputs: | |
changes: ${{ steps.changes.outputs.src }} | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | |
id: changes | |
with: | |
filters: | | |
src: | |
- 'contracts/**/*' | |
- '.github/workflows/solidity.yml' | |
prepublish-test: | |
needs: [changes] | |
if: needs.changes.outputs.changes == 'true' | |
name: Prepublish Test ${{ fromJSON('["(skipped)", ""]')[needs.changes.outputs.changes == 'true'] }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-nodejs | |
- name: Run Prepublish test | |
working-directory: contracts | |
run: pnpm prepublishOnly | |
- name: Collect Metrics | |
id: collect-gha-metrics | |
uses: smartcontractkit/push-gha-metrics-action@d1618b772a97fd87e6505de97b872ee0b1f1729a # v2.0.2 | |
with: | |
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | |
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | |
this-job-name: Prepublish Test | |
continue-on-error: true | |
native-compile: | |
needs: [changes] | |
if: needs.changes.outputs.changes == 'true' | |
name: Native Compilation ${{ fromJSON('["(skipped)", ""]')[needs.changes.outputs.changes == 'true'] }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Checkout diff-so-fancy | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
repository: so-fancy/diff-so-fancy | |
ref: a673cb4d2707f64d92b86498a2f5f71c8e2643d5 # v1.4.3 | |
path: diff-so-fancy | |
- name: Install diff-so-fancy | |
run: echo "$GITHUB_WORKSPACE/diff-so-fancy" >> $GITHUB_PATH | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-nodejs | |
with: | |
prod: "true" | |
- name: Setup Go | |
uses: ./.github/actions/setup-go | |
- name: Run native compile and generate wrappers | |
run: make wrappers-all | |
working-directory: ./contracts | |
- name: Verify local solc binaries | |
run: ./tools/ci/check_solc_hashes | |
- name: Check if Go solidity wrappers are updated | |
if: ${{ needs.changes.outputs.changes == 'true' }} | |
run: git diff --minimal --color --exit-code | diff-so-fancy | |
- name: Comment on fix instructions | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
if: ${{ failure() }} | |
run: gh pr comment -b 'Go solidity wrappers are out-of-date, regenerate them via the `make wrappers-all` command' | |
- name: Collect Metrics | |
id: collect-gha-metrics | |
uses: smartcontractkit/push-gha-metrics-action@d1618b772a97fd87e6505de97b872ee0b1f1729a # v2.0.2 | |
with: | |
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | |
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | |
this-job-name: Native Compilation | |
continue-on-error: true | |
lint: | |
defaults: | |
run: | |
working-directory: contracts | |
needs: [changes] | |
if: needs.changes.outputs.changes == 'true' | |
name: Lint ${{ fromJSON('["(skipped)", ""]')[needs.changes.outputs.changes == 'true'] }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup NodeJS | |
uses: ./.github/actions/setup-nodejs | |
- name: Run pnpm lint | |
run: pnpm lint | |
- name: Run solhint | |
run: pnpm solhint | |
- name: Collect Metrics | |
id: collect-gha-metrics | |
uses: smartcontractkit/push-gha-metrics-action@d1618b772a97fd87e6505de97b872ee0b1f1729a # v2.0.2 | |
with: | |
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | |
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | |
this-job-name: Lint | |
continue-on-error: true | |
prettier: | |
defaults: | |
run: | |
working-directory: contracts | |
needs: [changes] | |
name: Prettier Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup NodeJS | |
if: needs.changes.outputs.changes == 'true' | |
uses: ./.github/actions/setup-nodejs | |
- name: Run prettier check | |
if: needs.changes.outputs.changes == 'true' | |
run: pnpm prettier:check | |
- name: Collect Metrics | |
if: needs.changes.outputs.changes == 'true' | |
id: collect-gha-metrics | |
uses: smartcontractkit/push-gha-metrics-action@d1618b772a97fd87e6505de97b872ee0b1f1729a # v2.0.2 | |
with: | |
basic-auth: ${{ secrets.GRAFANA_CLOUD_BASIC_AUTH }} | |
hostname: ${{ secrets.GRAFANA_CLOUD_HOST }} | |
this-job-name: Prettier Formatting | |
continue-on-error: true |