chore(deps): bump dawidd6/action-download-artifact from 3 to 6 in /.github/workflows #11
This file contains hidden or 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
| name: External API tests | |
| on: | |
| pull_request: | |
| schedule: | |
| # https://crontab.guru | |
| - cron: '0 * * * *' | |
| env: | |
| CI: true | |
| jobs: | |
| test-ordinals: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/provision | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 18 | |
| - uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }} | |
| - name: Install dependencies | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| run: pnpm install --frozen-lockfile | |
| shell: bash | |
| - name: Get installed Playwright version | |
| id: playwright-version | |
| run: echo "PLAYWRIGHT_VERSION=$(node -e "console.log(require('./package.json').devDependencies['@playwright/test'])")" >> $GITHUB_ENV | |
| - name: Cache playwright binaries | |
| uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} | |
| - name: Install Playwright deps | |
| run: pnpm playwright install chrome | |
| if: steps.playwright-cache.outputs.cache-hit != 'true' | |
| - name: Run Playwright tests | |
| id: playwright | |
| uses: mathiasvr/command-output@v2.0.0 | |
| with: | |
| run: pnpm playwright test --reporter=github tests/api | |
| - name: Truncate String | |
| uses: 2428392/gh-truncate-string-action@v1.2.0 | |
| id: truncatedString | |
| if: failure() | |
| with: | |
| stringToTruncate: ${{ steps.playwright.outputs.stdout }} | |
| maxLength: 2000 | |
| - name: Discord notification | |
| if: failure() | |
| env: | |
| DISCORD_WEBHOOK: ${{ secrets.DISCORD_ALERT_CHANNEL }} | |
| uses: Ilshidur/action-discord@master | |
| with: | |
| args: | | |
| Something funky's up with the OrdAPI.xyz. Wallet team engineer to investigate. See `ordinals-checker.yml` Github Action. | |
| [Failing test job](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) | |
| ```bash | |
| ${{ steps.truncatedString.outputs.string }} | |
| ``` |