From 9c6229cdd9f4030284df873c1b28eb6b78047f29 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Mon, 11 Sep 2023 18:08:07 +0100 Subject: [PATCH] ci: reusable action --> workflow (pytest, jest) --- .github/workflows/pr.yml | 15 +++------------ .github/workflows/reusable/frontend_tests.yml | 3 +-- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 58f124eac0..1e3219854a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -11,15 +11,6 @@ on: jobs: pytest: - runs-on: ubuntu-latest - environment: - name: ${{ github.ref_name }} - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: PyTest - uses: ./.github/workflows/reusable/pytest.yml - - - name: Frontend Tests - uses: ./.github/workflows/reusable/frontend_test.yml + uses: ./.github/workflows/reusable/pytest.yml + frontend-tests: + uses: ./.github/workflows/reusable/frontend_tests.yml diff --git a/.github/workflows/reusable/frontend_tests.yml b/.github/workflows/reusable/frontend_tests.yml index 52cbdae34d..56dd3dab30 100644 --- a/.github/workflows/reusable/frontend_tests.yml +++ b/.github/workflows/reusable/frontend_tests.yml @@ -11,8 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - name: Setup Node.js uses: actions/setup-node@v2