Merge pull request #62 from plone/block-logos #235
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: Code analysis | |
on: | |
push: | |
env: | |
node-version: 18.x | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node-version }} | |
cache: 'yarn' | |
cache-dependency-path: 'frontend/yarn.lock' | |
- name: Install packages | |
run: make install | |
- name: Lint | |
run: yarn run lint:ci | |
prettier: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: make install | |
- name: Run Prettier | |
run: yarn run prettier | |
i18n: | |
name: i18n sync | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Use Node.js ${{ env.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.node-version }} | |
cache: 'yarn' | |
cache-dependency-path: 'frontend/yarn.lock' | |
- name: Install packages | |
run: make install | |
- name: Test i18n sync | |
run: make i18n-ci | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Run check | |
uses: plone/code-analysis-action@v2 | |
with: | |
base_dir: 'backend' | |
check: 'black' | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Run check | |
uses: plone/code-analysis-action@v2 | |
with: | |
base_dir: 'backend' | |
check: 'flake8' | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Run check | |
uses: plone/code-analysis-action@v2 | |
with: | |
base_dir: 'backend' | |
check: 'isort' | |
zpretty: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v3 | |
- name: Run check | |
uses: plone/code-analysis-action@v2 | |
with: | |
base_dir: 'backend' | |
check: 'zpretty' |