From 045f6ba68d0d6b72fe328499294725ef7a6befbf Mon Sep 17 00:00:00 2001 From: 23nosurrend Date: Wed, 1 May 2024 23:53:11 +0200 Subject: [PATCH] Add push and pull-request workflow files to .github/workflows --- .github/workflows/pull_request.yml | 22 +++++++++++++++++++ .github/workflows/push.yml | 19 ++++++++++++++++ .github/workflows/update.yml | 35 ------------------------------ 3 files changed, 41 insertions(+), 35 deletions(-) create mode 100644 .github/workflows/pull_request.yml create mode 100644 .github/workflows/push.yml delete mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 00000000..ed3e9dde --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,22 @@ +name: Pull Request Trigger Workflow + +on: + pull_request: + branches: + - develop + +jobs: + build-and-test: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '>=18' + - name: Install dependencies + run: npm install + - name: Run tests + run: npm run test -- --ci + diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 00000000..518ea826 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,19 @@ +name: Push Trigger Workflow + +on: + push: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '>=18' + - name: Install dependencies + run: npm install + - name: Run tests + run: npm run test -- --ci diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml deleted file mode 100644 index 218dd0e4..00000000 --- a/.github/workflows/update.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: medical CI - -on: - push: - - pull_request: - branches: [ develop ] - -jobs: - build: - runs-on: windows-latest - - steps: - - uses: actions/checkout@v4 - - - name: Run a one-line script - run: echo Hello from medical app - - - name: setup Node js - uses: actions/setup-node@v3 - with: - node-version: '>=18' - - - name: install dependencies - run: npm install - - - name: Run test - run: npm run test -- --ci - - - name: Start Expo in CI mode - run: npm run ci-start - env: - CI: "false" - -