From 6939045eae8407a7ad391bad12dbc01b540fd6ef Mon Sep 17 00:00:00 2001 From: Markus Hauru Date: Tue, 8 Mar 2022 10:39:11 +0000 Subject: [PATCH] Fix frontend action, add backend Coveralls badge --- .github/workflows/frontend-style.yaml | 9 +++++++-- eap_backend/README.md | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frontend-style.yaml b/.github/workflows/frontend-style.yaml index 80a44f32..80ace106 100644 --- a/.github/workflows/frontend-style.yaml +++ b/.github/workflows/frontend-style.yaml @@ -3,8 +3,13 @@ on: [push, pull_request, workflow_dispatch] jobs: style: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./frontend steps: - uses: actions/checkout@v2 - - uses: actionsx/prettier@v2 + - uses: actions/setup-node@v2 with: - args: --check . + node-version: '16' + - run: npm install + - run: npx prettier --check . diff --git a/eap_backend/README.md b/eap_backend/README.md index 49cd45e2..89982e8b 100644 --- a/eap_backend/README.md +++ b/eap_backend/README.md @@ -1,5 +1,7 @@ # The Ethical Assurance Platform backend +[![Coverage Status](https://coveralls.io/repos/github/alan-turing-institute/AssurancePlatform/badge.svg?branch=main)](https://coveralls.io/github/alan-turing-institute/AssurancePlatform?branch=main) + The backend is written in the [Django](https://docs.djangoproject.com/en/4.0/) framework. Its main purpose is to provide an API, through which data can be written to, retrieved from, or edited in, a database. Documentation on the API endpoints can be found [here](eap_api/API_docs.md).