Update enhancement.yml #8
Workflow file for this run
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: analyses | |
on: | |
push: | |
branches: [main, master, develop] | |
pull_request: | |
branches: [main, master, develop] | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ github.sha }} | |
lint: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cached node modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ github.sha }} | |
- name: Eslint | |
run: npm run lint:check | |
prettier: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cached node modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ github.sha }} | |
- name: Prettier | |
run: npm run prettier:check | |
typescript: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cached node modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ github.sha }} | |
- name: Typescript | |
run: npm run ts:check | |
unit_tests: | |
needs: install | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cached node modules | |
uses: actions/cache@v2 | |
with: | |
path: node_modules | |
key: ${{ github.sha }} | |
- name: Unit tests | |
run: npm run test:unit |