34 implement initial cicd pipelines #6
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: | |
on: | |
pull_request: | |
branches: | |
- dev | |
- release | |
- main | |
push: | |
branches: | |
- dev | |
- release | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install modules | |
run: yarn global add eslint @typescript-eslint/eslint-plugin@latest | |
- name: Run ESLint | |
# echo 0 ensures the CI passess even after | |
run: eslint . --format json --ext .js,.jsx,.ts,.tsx > eslint-report.json || echo 0 | |
- name: cat report file | |
# echo 0 ensures the CI passess even after | |
run: cat eslint-report.json || echo 0 | |
- name: ESLint Reporter | |
uses: rahmanrafi/eslint-reporter-action@v3 | |
with: | |
json: ./eslint-report.json | |
title: ESLint Report |