Skip to content

Commit

Permalink
fix: dependencies added to auto-merge.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Mirzarazi committed Feb 16, 2024
1 parent 3493d39 commit cc53344
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,26 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
- name: Install jq
run: sudo apt-get install jq
- name: Extract port from cypress.json
id: vars
run: |
apiUrl=$(jq -r '.env.apiUrl' ./cypress.json)
port=$(echo $apiUrl | grep -o '[0-9]\+')
echo "Extracted port: $port"
echo "::set-output name=port::$port"
- name: Run tests
uses: cypress-io/github-action@v5
with:
build: npm run build
start: npm run start
wait-on: 'npx wait-on --timeout 120000 http-get://127.0.0.1:${{ steps.vars.outputs.port }}/ping'

# Verifies the boilerplate can start and run in codespace environment
test-for-codespaces:
Expand All @@ -33,14 +48,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Start daemon
run: npm run start &
- name: Install jq
run: sudo apt-get install jq
- name: Extract port from cypress.json
id: vars
run: |
apiUrl=$(jq -r '.env.apiUrl' ./cypress.json)
port=$(echo $apiUrl | grep -o '[0-9]\+')
echo "Extracted port: $port"
echo "::set-output name=port::$port"
- name: Run tests
run: npm run test
uses: cypress-io/github-action@v5
with:
build: npm run build
start: npm run start
wait-on: 'npx wait-on --timeout 120000 http-get://127.0.0.1:${{ steps.vars.outputs.port }}/ping'

check-dependabot:
needs:
Expand Down

0 comments on commit cc53344

Please sign in to comment.