Skip to content

Commit

Permalink
Merge pull request storyprotocol#12 from tyitang/update-ci
Browse files Browse the repository at this point in the history
Update CI config
  • Loading branch information
AndyBoWu authored Mar 29, 2024
2 parents db62742 + d379937 commit df901eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
run: pnpm eslint .
# Ensure you have a lint script in your package.json

- name: Load CI env
run: |
source ci.env
- name: Set env
env:
API_BASE_URL: ${{ vars.API_BASE_URL }}
API_PREFIX: ${{ vars.API_PREFIX }}
API_KEY: ${{ secrets.API_KEY }}

- name: Run Tests
run: pnpm exec playwright test
Expand Down
2 changes: 1 addition & 1 deletion ci.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
API_BASE_URL="https://edge.stg.storyprotocol.net"
API_KEY="U3RvcnlQcm90b2NvbFRlc3RBUElLRVk="
API_KEY=#API_KEY#
API_PREFIX="/api/sepolia/v1"
4 changes: 2 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
retries: process.env.CI ? 0 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
workers: process.env.CI ? 4 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'html',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
Expand Down

0 comments on commit df901eb

Please sign in to comment.