From 0488638634b3910f8f09a42b9ef62b79513671ab Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Jun 2024 12:47:22 +0200 Subject: [PATCH 1/2] chore: Remove unused mobile test workflow --- .github/workflows/lint-test-mobile.yml | 53 ++++++++++++++++++++++++++ .github/workflows/test-mobile.yml | 34 ----------------- 2 files changed, 53 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/lint-test-mobile.yml delete mode 100644 .github/workflows/test-mobile.yml diff --git a/.github/workflows/lint-test-mobile.yml b/.github/workflows/lint-test-mobile.yml new file mode 100644 index 00000000..21ddd7f7 --- /dev/null +++ b/.github/workflows/lint-test-mobile.yml @@ -0,0 +1,53 @@ +name: Lint and Test Mobile + +on: + pull_request: + branches: + - develop + paths: [ + "frontend/occupi-mobile4/**", + ".github/workflows/lint-test-mobile.yml" + ] + + workflow_dispatch: + +defaults: + run: + working-directory: frontend/occupi-mobile4 + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install Dependencies + run: npm install --legacy-peer-deps + + - name: Lint + run: npm run lint + + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install Dependencies + run: npm install --legacy-peer-deps + + - name: Run Tests + run: npm run test-ci \ No newline at end of file diff --git a/.github/workflows/test-mobile.yml b/.github/workflows/test-mobile.yml deleted file mode 100644 index b24b27c5..00000000 --- a/.github/workflows/test-mobile.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Test Mobile - -on: - pull_request: - branches: - - develop - paths: [ - "frontend/occupi-mobile3/**" - ] - - workflow_dispatch: - -defaults: - run: - working-directory: frontend/occupi-mobile3 - -jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - - - name: Install Dependencies - run: npm install --legacy-peer-deps - - - name: Run Tests - run: npm run test-ci \ No newline at end of file From fb952ba3a9e7c6bf7f7d358da2d04e342e6bca4a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 24 Jun 2024 12:50:53 +0200 Subject: [PATCH 2/2] chore: Update npm test command to run tests without CI flag --- .github/workflows/lint-test-mobile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-test-mobile.yml b/.github/workflows/lint-test-mobile.yml index 21ddd7f7..6219cc58 100644 --- a/.github/workflows/lint-test-mobile.yml +++ b/.github/workflows/lint-test-mobile.yml @@ -50,4 +50,4 @@ jobs: run: npm install --legacy-peer-deps - name: Run Tests - run: npm run test-ci \ No newline at end of file + run: npm run test \ No newline at end of file