fix: test run outside a PR
This commit is contained in:
19
.github/workflows/ci-test.yaml
vendored
Normal file
19
.github/workflows/ci-test.yaml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Continuous Integration
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- fix/git-checkout-stage-fix
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
tests-and-lints:
|
||||||
|
uses: ./.github/workflows/tests-and-lints-template.yaml
|
||||||
|
secrets:
|
||||||
|
eth_rpc_url: ${{ secrets.ETH_RPC_URL }}
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
app_private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
4
.github/workflows/evm-foundry-ci.yml
vendored
4
.github/workflows/evm-foundry-ci.yml
vendored
@@ -13,12 +13,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RPC_URL: ${{ secrets.ETH_RPC_URL }}
|
RPC_URL: ${{ secrets.ETH_RPC_URL }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Install Foundry
|
- name: Install Foundry
|
||||||
uses: foundry-rs/foundry-toolchain@v1
|
uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: forge fmt --check
|
run: forge fmt --check
|
||||||
|
|||||||
6
.github/workflows/slither.yml
vendored
6
.github/workflows/slither.yml
vendored
@@ -10,8 +10,8 @@ jobs:
|
|||||||
analyze:
|
analyze:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
- uses: crytic/slither-action@v0.4.0
|
- uses: crytic/slither-action@f197989dea5b53e986d0f88c60a034ddd77ec9a8
|
||||||
with:
|
with:
|
||||||
target: 'foundry/'
|
target: 'foundry/'
|
||||||
slither-args: '--filter-paths foundry/lib/'
|
slither-args: '--filter-paths foundry/lib/'
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/head
|
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
|
||||||
|
|
||||||
- name: Setup git to use https
|
- name: Setup git to use https
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user