Skip to content

πŸ› FIX: revert mdb to version 5 #1

πŸ› FIX: revert mdb to version 5

πŸ› FIX: revert mdb to version 5 #1

Workflow file for this run

name: ci
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
- name: Setup node env πŸ—
uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
check-latest: true
- name: Get yarn cache directory path πŸ› 
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache node_modules πŸ“¦
uses: actions/cache@master
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: yarn
- name: Run linter πŸ‘€
run: yarn lint
- name: Run tests πŸ§ͺ
run: yarn test
# deploy:
# name: Vercel Deploy
#
# if: github.ref == 'refs/heads/dev'
#
# runs-on: ubuntu-latest
# strategy:
# max-parallel: 4
# needs: [ci]
#
# steps:
# - uses: actions/checkout@master
# - uses: actions/setup-node@master
# with:
# node-version: 16
# - name: Deploy to Vercel
# run: |
# npx vercel --token ${{ secrets.VERCEL_TOKEN }} --prod
# env:
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}