Merge pull request #15 from fschrempf/feature/reduce-api-request-load #61
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: CI Jobs | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
env: | |
NODE_VERSION: 16.x | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js $NODE_VERSION | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Modules | |
run: npm ci | |
- name: Run ESLint | |
run: npm run lint | |
unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js $NODE_VERSION | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install Modules | |
run: npm ci | |
- name: Run Unit Tests | |
run: npm run test |