fix: prepared lint workflow for external contributors
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 }}
|
||||||
|
|
||||||
11
.github/workflows/tests-and-lints-template.yaml
vendored
11
.github/workflows/tests-and-lints-template.yaml
vendored
@@ -89,10 +89,17 @@ jobs:
|
|||||||
- name: Install git
|
- name: Install git
|
||||||
run: sudo apt update && sudo apt install -y git
|
run: sudo apt update && sudo apt install -y git
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout PR (from fork or branch)
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/head', github.event.pull_request.number) || github.ref }}
|
ref: refs/pull/${{ github.event.pull_request.number }}/head
|
||||||
|
|
||||||
|
- name: Checkout push branch (main or other)
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Setup git to use https
|
- name: Setup git to use https
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user