forked from eth-infinitism/bundler-test-executor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate output repo (eth-infinitism#4)
* push results to separate repo
- Loading branch information
1 parent
be2c5e8
commit bd4a582
Showing
6 changed files
with
39 additions
and
21 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -56,28 +56,26 @@ jobs: | |
- run: "cd bundler-spec-tests && pdm install && pdm update-deps" | ||
name: update submodules of bundler-spec-tests | ||
|
||
|
||
- run: ./runall.sh | ||
- run: ./runall.sh -k GASP | ||
name: Run all tests. | ||
|
||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
with: | ||
path: build | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
- name: clone results repo | ||
run: ./update-results.sh out-results | ||
|
||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
- name: Push results to results repo | ||
uses: cpina/github-action-push-to-another-repository@main | ||
env: | ||
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
with: | ||
source-directory: 'out-results' | ||
destination-github-username: 'eth-infinitism' | ||
destination-repository-name: 'bundler-test-results' | ||
user-email: [email protected] | ||
target-branch: master | ||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
group: "deploy" | ||
cancel-in-progress: true | ||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/build/ | ||
/bundler-spec-tests/ | ||
/out-results/ |
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
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
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,21 @@ | ||
#!/bin/bash -xe | ||
|
||
if [ -z "$1" ]; | ||
then | ||
echo usage: $0 {results-clone-folder} | ||
exit 1 | ||
fi | ||
|
||
base=`pwd`/$1 | ||
rm -rf $base | ||
git clone --depth 1 https://github.com/eth-infinitism/bundler-test-results.git $base | ||
ts=`date +%Y%m%d/%H%M%S` | ||
folder=$base/runs/$ts | ||
mkdir -p $folder | ||
cp build/out/* $folder | ||
ls -p $folder > $folder/index.txt | ||
cd $base/runs | ||
ln -nsf $ts latest | ||
ls -p > index.txt | ||
find . > all.txt | ||
|