Skip to content

Polar path documentation #1686

Polar path documentation

Polar path documentation #1686

Workflow file for this run

name: test-code-examples
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
code_examples:
name: Test code snippets
runs-on: ubuntu-latest
strategy:
matrix:
test_case: ['dapp', 'workshop', 'core']
required: ['required']
include:
- test_case: 'staking'
required: 'optional'
continue-on-error: ${{ matrix.required == 'optional' }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Test style conventions
working-directory: code_examples/sdk_examples
run: |
yarn install --frozen-lockfile
yarn lint && yarn style
- name: Run tests
timeout-minutes: 60
env:
NODE_OPTIONS: --unhandled-rejections=strict
BASE_MNEMONIC: ${{ secrets.BASE_MNEMONIC }}
FAUCET_SEED: ${{ secrets.FAUCET_SEED }}
run: |
yarn install --frozen-lockfile
yarn test ${{ matrix.test_case }}
check-links:
name: Check for broken links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install
run: |
yarn install --frozen-lockfile
- name: Check for broken links
run: |
yarn check-links