-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4021 from iron-fish/staging
STAGING -> MASTER
- Loading branch information
Showing
146 changed files
with
16,390 additions
and
869 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
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,17 @@ | ||
name: Pull Requests should target Staging branch | ||
|
||
on: | ||
pull_request: | ||
types: ['*'] | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: ${{ contains(github.event.pull_request.base.ref, 'master') && !contains(github.event.pull_request.title, 'master') }} | ||
run: | | ||
echo 'Pull request has "master" base branch without the override keyword "master" in the PR Title' | ||
echo 'This pull request probably meant to target "staging"' | ||
exit 1 |
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,52 @@ | ||
name: Performance Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- staging | ||
|
||
permissions: | ||
checks: write | ||
contents: write | ||
|
||
jobs: | ||
testperf: | ||
name: Perf Tests | ||
runs-on: [self-hosted, macOS, ARM64] | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.12.1' | ||
cache: 'yarn' | ||
|
||
- name: Install packages | ||
run: yarn --non-interactive --frozen-lockfile | ||
|
||
- name: Run perf tests | ||
run: yarn test:perf:report | ||
|
||
- name: Check for missing fixtures | ||
run: | | ||
if [[ $(git status | grep fixture) ]]; then | ||
echo "New test fixtures have not been checked in, please check them in." | ||
exit 1 | ||
fi | ||
- name: Import to InfluxDB | ||
if: contains(github.event_name, 'push') | ||
env: | ||
INFLUX_TOKEN: ${{ secrets.INFLUX_TOKEN }} | ||
INFLUX_ORG: 'fdcfe96f6c31245a' | ||
INFLUX_HOST: 'https://us-east-1-1.aws.cloud2.influxdata.com' | ||
run: | | ||
for f in ironfish/test-reports/*.perf.csv; do | ||
influx write --bucket ironfish-telemetry-mainnet --format=csv --file $f | ||
done |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
# testing | ||
**/coverage | ||
testdbs | ||
**/test-reports | ||
|
||
# production | ||
**/build | ||
|
Oops, something went wrong.