Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Tests

# Junit reporter needs permission to write to checks
permissions:
contents: read
checks: write
id-token: write

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:

checkChangedFiles:
runs-on: ubuntu-latest
outputs:
files: ${{ steps.files.outputs.added_modified }}
steps:
- uses: actions/checkout@v2
- id: files
uses: Ana06/get-changed-files@v1.2
with:
format: 'csv'
filter: '*.mdx?'

tests:
runs-on: ubuntu-latest
needs: checkChangedFiles
if: ${{ needs.checkChangedFiles.outputs.files != '' }}
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 22

- run: npm ci

# Set up remote tests
- run: git clone https://gitlab.com/nomadic-labs/doclib.git
- run: npm i
working-directory: doclib

# Tests:
# - Run tests from the doclib repo
# - Pass the changed files as a comma-separated list

- name: External link and anchor check
run: npm run checkExternalLinks -- --baseFolder=.. --docFiles=$CHANGED_FILES --reporter mocha-junit-reporter --reporter-options mochaFile=../externalLinks.xml || FAILED=1
working-directory: doclib

- name: Image links check
run: npm run imageLinks -- --baseFolder=.. --imageFolder=static --docFiles=${{ needs.checkChangedFiles.outputs.files }} --reporter mocha-junit-reporter --reporter-options mochaFile=imageLinks.xml|| FAILED=1
working-directory: doclib

- name: Unused images check
run: npm run usedImages -- --baseFolder=.. --docFiles=docs --imageFolder=static --ignoreImages=img/site --reporter mocha-junit-reporter --reporter-options mochaFile=usedImages.xml|| FAILED=1
working-directory: doclib

- name: Dependency proposer
run: npm run proposeDependencies -- --baseFolder=.. --docFiles=${{ needs.checkChangedFiles.outputs.files }} --major --reporter mocha-junit-reporter --reporter-options mochaFile=proposedDependencies.xml|| FAILED=1
working-directory: doclib

- name: log result
run: echo $FAILED

# Report tests on PR
- uses: dorny/test-reporter@v2
if: ${{ !cancelled() }}
with:
path: 'doclib/*.xml'
reporter: jest-junit
name: Doc tests
7 changes: 7 additions & 0 deletions docs/bridging/bridging-evm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ title: Bridging tokens between Etherlink and other EVM networks
sidebar_label: Bridging to EVM networks
---

```bash
octez-client config show
```
```bash
python whatever
```

import InlineCopy from '@site/src/components/InlineCopy';
import Video from '@site/src/components/Video';
import Tabs from '@theme/Tabs';
Expand Down
Loading