Skip to content

Merge pull request #300 from ozgurg/dev #341

Merge pull request #300 from ozgurg/dev

Merge pull request #300 from ozgurg/dev #341

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: [18]
steps:
- name: "[SET UP] Checkout πŸ›Ž"
uses: actions/checkout@v4.1.1
- name: "[SET UP] Setup node env πŸ—"
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ matrix.node }}
- name: "[SET UP] Cache node_modules πŸ“¦"
uses: actions/cache@v4.0.1
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@v13.4.0
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}