Skip to content

Merge pull request #274 from ozgurg/dev #317

Merge pull request #274 from ozgurg/dev

Merge pull request #274 from ozgurg/dev #317

Workflow file for this run

name: "CI"
on:
push:
branches: [main]
paths-ignore:
- "**.md"
- ".github/dependabot.yml"
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- name: "[SET UP] Checkout πŸ›Ž"
uses: actions/checkout@master
- name: "[SET UP] Setup node env πŸ—"
uses: actions/setup-node@v2.5.2
with:
node-version: ${{ matrix.node }}
- name: "[SET UP] Cache node_modules πŸ“¦"
uses: actions/cache@v2.1.8
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: "[SET UP] Install dependencies πŸ‘¨πŸ»β€πŸ’»"
run: npm ci
- name: "[QUALITY] Run linter πŸ‘€"
run: npm run lint
- name: "[QUALITY] Run unit tests πŸ§ͺ"
run: npm run test
- name: "[DEPLOY] Build for production"
run: npm run generate
- name: "[DEPLOY] Deploy to Firebase"
uses: w9jds/firebase-action@v11.24.1
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}