12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- ---
- #################################
- #################################
- ## Super Linter GitHub Actions ##
- #################################
- #################################
- name: Lint Code Base
- #
- # Documentation:
- # https://help.github.com/en/articles/workflow-syntax-for-github-actions
- #
- #############################
- # Start the job on all push #
- #############################
- on:
- push:
- branches:
- - main
- pull_request:
- branches:
- - main
- ###############
- # Set the Job #
- ###############
- jobs:
- build:
- # Name the Job
- name: Lint Code Base
- # Set the agent to run on
- runs-on: ubuntu-latest
- ##################
- # Load all steps #
- ##################
- steps:
- ##########################
- # Checkout the code base #
- ##########################
- - name: Checkout Code
- uses: actions/checkout@v2
- with:
- # Full git history is needed to get a proper list of changed files within `super-linter`
- fetch-depth: 0
- - name: Setup node
- uses: actions/setup-node@v2
- with:
- node-version: "16"
- registry-url: https://registry.npmjs.com/
- - name: Setup pnpm
- uses: pnpm/action-setup@v2
- with:
- version: latest
- - name: Build
- run: |
- pnpm install
- pnpm lint
- pnpm typecheck
- env:
- VALIDATE_ALL_CODEBASE: false
- DEFAULT_BRANCH: main
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|