add GitHub sponsor button #1
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] | |
pull_request: | |
branches: [main, master] | |
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 |