Skip to content

Commit

Permalink
wip: added eslint job to test if it all works
Browse files Browse the repository at this point in the history
  • Loading branch information
ollibowers committed Jul 14, 2024
1 parent a4ead88 commit 5f6678e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 12 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setup-ci-backend/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Setup Backend Dependencies"
description: "Sets up the backend dependencies required for the testing containers."

runs:
using: "composite"
steps:
- name: Set up python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r ./backend/requirements.txt
shell: bash
4 changes: 1 addition & 3 deletions .github/actions/setup-ci-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ description: "Sets up the environment variables required for the testing contain
runs:
using: "composite"
steps:
- name: Checking out repository
uses: actions/checkout@v4
- name: Set up Python 3.12
- name: Set up python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
Expand Down
14 changes: 14 additions & 0 deletions .github/actions/setup-ci-frontend/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Setup Frontend Dependencies"
description: "Sets up the frontend dependencies required for the testing containers."

runs:
using: "composite"
steps:
- name: Set up node LTS
uses: actions/setup-node@v4
with:
node-version: "lts"
- name: Install dependencies
run: npm ci
shell: bash
working-directory: ./frontend
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Unit Tests
name: CI tests

on:
pull_request:
Expand Down Expand Up @@ -101,15 +101,14 @@ jobs:
--mongodb_service_hostname="mongodb"
- name: Test the frontend successfully builds
run: docker compose up -d frontend-prod
lol:
name: lolol
frontend_lint:
name: Frontend Eslint
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Setup Env
uses: ./.github/actions/setup-ci-env
- name: Install deps
uses: ./.github/actions/setup-ci-frontend
- name: Frontend linting
run: npm run lint
working-directory: ./frontend

0 comments on commit 5f6678e

Please sign in to comment.