build: (&ci) slim image & scheduled deploy (#203) #804
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
on: | |
push: | |
branches: | |
- '**' | |
name: Check Code Quality | |
jobs: | |
code-quality: | |
name: Check Code Quality | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis:4 | |
ports: | |
- 6380:6379 | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 16.14 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.14 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
# Disabling audit step since node_fetch vuln introduced by next is not fixable atm | |
# - name: Run npm audit (on production dependencies) | |
# run: npm audit --production | |
- name: Lint | |
run: npm run lint -- --max-warnings 0 | |
- name: Test | |
run: npm run test |