diff --git a/.github/actions/setup-ci-backend/action.yml b/.github/actions/setup-ci-backend/action.yml new file mode 100644 index 000000000..e5931ed3a --- /dev/null +++ b/.github/actions/setup-ci-backend/action.yml @@ -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 diff --git a/.github/actions/setup-ci-env/action.yml b/.github/actions/setup-ci-env/action.yml index 91a20f734..23504f22f 100644 --- a/.github/actions/setup-ci-env/action.yml +++ b/.github/actions/setup-ci-env/action.yml @@ -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" diff --git a/.github/actions/setup-ci-frontend/action.yml b/.github/actions/setup-ci-frontend/action.yml new file mode 100644 index 000000000..983a88a00 --- /dev/null +++ b/.github/actions/setup-ci-frontend/action.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9e0726a3..4b7cb90c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Unit Tests +name: CI tests on: pull_request: @@ -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