Skip to content

Merge pull request #232 from NdoleStudio/dependabot/github_actions/ac… #480

Merge pull request #232 from NdoleStudio/dependabot/github_actions/ac…

Merge pull request #232 from NdoleStudio/dependabot/github_actions/ac… #480

Workflow file for this run

name: ci
on:
push:
branches:
- main
defaults:
run:
working-directory: ./web
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/[email protected]
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/[email protected]
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
- name: Debug 🐛
run: echo GITHUB_SHA=${GITHUB_SHA}
- name: Build 🏗️
run: mv .env.production .env && echo GITHUB_SHA=${GITHUB_SHA} >> .env && yarn generate
- name: Deploy 🚀
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
channelId: live
entryPoint: "./web"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}"
projectId: httpsms-86c51