feat: add mutations for addFacility and addHealthcareProfessional #389
Workflow file for this run
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: Lint | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
schedule: | |
- cron: '45 15 * * 4' | |
env: | |
CACHE_PATH: ./* | |
CACHE_KEY: lint-cache-${{ github.sha }} | |
permissions: | |
contents: read | |
security-events: write | |
actions: write # This is needed for pull requests to delete | |
jobs: | |
setup: | |
name: Setup 🛫 | |
strategy: | |
matrix: | |
node-version: [18] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.CACHE_PATH }} | |
key: ${{ env.CACHE_KEY }}-${{ matrix.node-version }} | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Yarn/ Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "yarn" | |
- name: Install Dependencies | |
run: yarn install --immutable | |
# this is needed to generate things like tsconfig declarations | |
- name: Prepare Backend | |
run: echo todo | |
teardown: | |
name: Teardown 🛬 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
needs: | |
# list of lint jobs | |
- eslint | |
if: always() | |
env: | |
LINT_RESULTS: ${{ toJson(needs) }} | |
steps: | |
- name: Check Lint Status | |
if: always() | |
run: | | |
# failure if one or more lint jobs exit without "success"/"skipped" status | |
if echo "$LINT_RESULTS" | jq -r '.[].result' | grep -v 'success' | grep -q -v 'skipped'; then | |
echo "lint failure" | |
exit 1 | |
fi | |
exit 0 | |
# ESLint is a tool for identifying and reporting on patterns | |
# found in ECMAScript/JavaScript code. | |
# More details at https://github.com/eslint/eslint | |
# and https://eslint.org | |
eslint: | |
name: ESLint ✨ | |
runs-on: ubuntu-latest | |
needs: setup | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- name: Load Cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.CACHE_PATH }} | |
key: ${{ env.CACHE_KEY }}-${{ matrix.node-version }} | |
- name: Run ESLint | |
run: yarn lint:ci |