Merge pull request #5 from ADORSYS-GIS/francis-pouatcha-patch-2 #10
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 |