chore(documentation): Add exists documentation #498
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: Pull request checks | |
on: [pull_request] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- uses: ./.github/actions/es-lint | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-22.04 | |
needs: [lint] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- uses: ./.github/actions/unit-tests | |
functional-tests: | |
name: Functional Tests | |
runs-on: ubuntu-22.04 | |
needs: [unit-tests] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- uses: ./.github/actions/functional-tests | |
with: | |
CYPRESS_RECORD_KEY_DOC: ${{ secrets.CYPRESS_RECORD_KEY_DOC }} | |
admin-console-tests: | |
name: Admin Console Tests | |
runs-on: ubuntu-22.04 | |
needs: [unit-tests] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: "14" | |
- uses: ./.github/actions/tests-ac | |
with: | |
sdk-version: 7 | |
cypress-key: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# doc-dead-links: | |
# name: Check dead-links | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# with: | |
# fetch-depth: 0 | |
# - name: Extract references from context | |
# shell: bash | |
# id: extract-refs | |
# run: | | |
# echo "::set-output name=version::$(git describe --abbrev=0 --tags | cut -d. -f 1)" | |
# echo "::set-output name=repo::$(echo $GITHUB_REPOSITORY | cut -d/ -f 2)" | |
# echo "::set-output name=fw-branch::$(if [ $BASE_BRANCH == master ]; then echo master; else echo develop; fi)" | |
# - uses: convictional/[email protected] | |
# with: | |
# owner: kuzzleio | |
# repo: documentation | |
# github_token: ${{ secrets.ACCESS_TOKEN_CI }} | |
# workflow_file_name: dead_links.workflow.yml | |
# ref: ${{ steps.extract-refs.outputs.fw-branch }} | |
# inputs: '{"repo_name": "${{ steps.extract-refs.outputs.repo }}", "branch": "${{ github.head_ref }}", "version": "${{ steps.extract-refs.outputs.version }}"}' | |
documentation-snippet-tests: | |
name: Documentation Snippet Tests | |
needs: [unit-tests] | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
- uses: ./.github/actions/snippet-tests | |
with: | |
CYPRESS_RECORD_KEY_DOC: ${{ secrets.CYPRESS_RECORD_KEY_DOC }} |