feat: added get credential pages #84
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
--- | |
########################### | |
########################### | |
## Pull request testing ## | |
########################### | |
########################### | |
name: Latest Pull Request | |
# Documentation: | |
# - Workflow: https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# - SuperLinter: https://github.com/github/super-linter | |
# - Markdown linter: https://github.com/DavidAnson/markdownlint | |
# - Link validation: https://github.com/remarkjs/remark-validate-links | |
###################################################### | |
# Start the job on a pull request to the main branch # | |
###################################################### | |
on: | |
pull_request: | |
branches: [main] | |
############### | |
# Set the Job # | |
############### | |
jobs: | |
validate: | |
# Set the agent to run on | |
runs-on: ubuntu-latest | |
################## | |
# Load all steps # | |
################## | |
steps: | |
########################## | |
# Checkout the code base # | |
########################## | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
# Full git history is needed to get a proper list of changed files | |
# within `super-linter` | |
fetch-depth: 0 | |
################################ | |
# Run Linters against code base # | |
################################ | |
- name: Lint Code Base | |
# | |
# Use full version number to avoid cases when a next | |
# released version is buggy | |
# About slim image: https://github.com/github/super-linter#slim-image | |
uses: github/super-linter/[email protected] | |
env: | |
VALIDATE_ALL_CODEBASE: false | |
DEFAULT_BRANCH: main | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_GITHUB_ACTIONS: true | |
VALIDATE_GITLEAKS: true | |
# | |
# The Markdown rules are defined at | |
# .github/linters/.markdown-lint.yml | |
# | |
# Documentation on rules: | |
# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md | |
VALIDATE_MARKDOWN: true | |
VALIDATE_YAML: true | |
- name: Setup Node v16 for Yarn v3 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.15.0' # Current LTS version | |
- name: Enable Corepack for Yarn v3 | |
run: corepack enable | |
- name: Install Yarn v3 | |
uses: borales/actions-yarn@v3 | |
with: | |
cmd: set version stable | |
- name: Install dependencies | |
uses: borales/actions-yarn@v3 | |
env: | |
YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
with: | |
cmd: install | |
- name: Build site | |
if: ${{ success() }} | |
uses: borales/actions-yarn@v3 | |
with: | |
cmd: build |