Docs site - basicAuth curl example for all APIs has been hardcoded in docs to say API Key. This isn’t accurate. #41
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: Validate | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main, v2.0.0] | |
| env: | |
| FORCE_COLOR: true | |
| jobs: | |
| prepare-yarn-cache: | |
| name: Prepare Cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - uses: actions/cache@v2 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| /home/runner/.cache/Cypress | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install --frozen-lockfile | |
| lint: | |
| name: Lint | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - uses: actions/cache@v2 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Check format | |
| run: yarn format | |
| - name: Lint | |
| run: yarn lint --max-warnings 0 | |
| test: | |
| name: Test | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - uses: actions/cache@v2 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Test | |
| run: yarn test | |
| cypress: | |
| name: Cypress | |
| needs: prepare-yarn-cache | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "18" | |
| - uses: actions/cache@v2 | |
| with: | |
| path: | | |
| node_modules | |
| */*/node_modules | |
| /home/runner/.cache/Cypress | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install | |
| run: yarn install | |
| - name: Build | |
| run: yarn build | |
| - name: Cypress | |
| run: yarn test:cypress |