This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
minor cleanup #302
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
name: Validate and publish functions | |
on: | |
- push | |
env: | |
working-directory: Firebase/functions | |
jobs: | |
check-format: | |
name: Check format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i --legacy-peer-deps --prefix ${{ env.working-directory }} | |
- name: Check format | |
run: npm run format --prefix ${{ env.working-directory }} | |
check-lint: | |
name: Check lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i --legacy-peer-deps --prefix ${{ env.working-directory }} | |
- name: Check lint | |
run: npm run lint --prefix ${{ env.working-directory }} | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i --legacy-peer-deps --prefix ${{ env.working-directory }} | |
- name: Test | |
run: npm t --prefix ${{ env.working-directory }} | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: npm i --legacy-peer-deps --prefix ${{ env.working-directory }} | |
- name: Build | |
run: npm run build --prefix ${{ env.working-directory }} |