Docs audit for credentials section #1628
Workflow file for this run
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
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@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
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@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install | |
run: | | |
yarn install --frozen-lockfile | |
- name: Check for broken links | |
run: | | |
yarn check-links |