forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* github workflows: update * lint: fix
- Loading branch information
Showing
3 changed files
with
81 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Setup & Run Integration Test Suite | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Setup & Run Integration Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: webfactory/ssh-agent@v0.4.0 | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_READ }} | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v1 | ||
|
||
- name: Build | ||
run: | | ||
git clone https://github.com/ethereum-optimism/optimism-integration.git \ | ||
$HOME/optimism-integration \ | ||
--recurse-submodules | ||
REPO=$(echo $GITHUB_REPOSITORY | cut -d '/' -f2) | ||
cd $HOME/optimism-integration/$REPO | ||
REMOTE="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git" | ||
git remote add gh $REMOTE | ||
git fetch gh $GITHUB_SHA | ||
git checkout $GITHUB_SHA | ||
cd $HOME/optimism-integration | ||
./build.sh | ||
- name: Test | ||
run: | | ||
cd $HOME/optimism-integration | ||
./test.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update submodules in integration repo | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
run: | ||
name: Update submodules | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: webfactory/ssh-agent@v0.4.0 | ||
with: | ||
ssh-private-key: ${{ secrets.INTEGRATION_PUSH_ACTION }} | ||
|
||
- name: Clone repo | ||
run: | | ||
git clone git@github.com:ethereum-optimism/optimism-integration.git $HOME/optimism-integration | ||
cd $HOME/optimism-integration | ||
git submodule init && git submodule update | ||
REPO=$(echo $GITHUB_REPOSITORY | cut -d '/' -f2) | ||
cd $HOME/optimism-integration/$REPO | ||
git pull origin master | ||
- name: Commit | ||
run: | | ||
git config --global user.email "action@github.com" | ||
git config --global user.name "GitHub Action" | ||
cd $HOME/optimism-integration | ||
REPO=$(echo $GITHUB_REPOSITORY | cut -d '/' -f2) | ||
SHORT=$(echo $GITHUB_SHA | head -c 8) | ||
git add $REPO | ||
git commit -m "submodule bump: $REPO $SHORT" | ||
git push origin master |