-
Notifications
You must be signed in to change notification settings - Fork 7
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 #20 from storyprotocol/update-config
Update tests for the latest API version
- Loading branch information
Showing
36 changed files
with
144 additions
and
166 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 |
---|---|---|
|
@@ -44,25 +44,23 @@ jobs: | |
run: pnpm eslint . | ||
# Ensure you have a lint script in your package.json | ||
|
||
- name: Run Tests On Seplia | ||
- name: Run Tests On Sepolia | ||
continue-on-error: true | ||
run: | | ||
echo "Load environment variables" | ||
rm .env.sepolia && touch .env.sepolia | ||
echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env.sepolia | ||
echo API_PREFIX=${{ secrets.API_PREFIX_SEPOLIA }} >> .env.sepolia | ||
echo API_KEY=${{ secrets.API_KEY }} >> .env.sepolia | ||
rm .env && touch .env | ||
echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env | ||
echo API_KEY=${{ secrets.API_KEY }} >> .env | ||
test_env=sepolia npx playwright test | ||
- name: Run Tests On Renaissance | ||
- name: Run Tests On Story | ||
continue-on-error: true | ||
run: | | ||
echo "Load environment variables" | ||
rm .env.renaissance && touch .env.renaissance | ||
echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env.renaissance | ||
echo API_PREFIX=${{ secrets.API_PREFIX_RENAISSANCE }} >> .env.renaissance | ||
echo API_KEY=${{ secrets.API_KEY }} >> .env.renaissance | ||
test_env=renaissance npx playwright test | ||
rm .env && touch .env | ||
echo API_BASE_URL=${{ secrets.API_BASE_URL }} > .env | ||
echo API_KEY=${{ secrets.API_KEY }} >> .env | ||
test_env=story npx playwright test | ||
- name: Push Slack Notification | ||
uses: slackapi/[email protected] | ||
|
@@ -106,6 +104,6 @@ jobs: | |
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 | ||
# if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
with: | ||
name: renaissance-test-reports | ||
name: story-test-reports | ||
path: | | ||
./playwright-report-renaissance/index.html | ||
./playwright-report-story/index.html |
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,3 +1,2 @@ | ||
API_BASE_URL="https://edge.stg.storyprotocol.net" | ||
API_BASE_URL = "https://edge.stg.storyprotocol.net/api/v1/" | ||
API_KEY=#API_KEY# | ||
API_PREFIX="/api/sepolia/v1" |
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
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
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
Oops, something went wrong.