gitcoinco/code_fund_ads

View on GitHub
.github/workflows/prettier_standard.yml

Summary

Maintainability
Test Coverage
name: Prettier-Standard

on:
  pull_request:
    branches:
      - '*'
  push:
    branches:
      - master

jobs:
  prettier_standard:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Set up Node
      uses: actions/setup-node@v1
      with:
        node-version: '13'
    - name: Get yarn cache directory path
      id: yarn-cache-dir-path
      run: echo "::set-output name=dir::$(yarn cache dir)"
    - uses: actions/cache@v1
      id: yarn-cache
      with:
        path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
        key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
        restore-keys: |
          ${{ runner.os }}-yarn-
    - name: Install node packages
      run: yarn install --ignore-engines
    - name: Run Prettier-Standard check
      run: yarn run prettier:check