From c3ffefbbb9f646f10ec0330c85045759b4518b28 Mon Sep 17 00:00:00 2001 From: Popov Aleksey Date: Fri, 13 Oct 2023 14:38:09 +0300 Subject: [PATCH] github-actions: added prepare action before test --- .github/workflows/auth-examples.yml | 6 +---- .github/workflows/main.yml | 34 ++++++++++++++--------------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/workflows/auth-examples.yml b/.github/workflows/auth-examples.yml index a766500..a8c9914 100644 --- a/.github/workflows/auth-examples.yml +++ b/.github/workflows/auth-examples.yml @@ -12,14 +12,10 @@ jobs: timeout-minutes: 10 steps: - - name: Setup Node - uses: actions/setup-node@v2 + - uses: DevExpress/testcafe-build-system/actions/prepare@main with: node-version: '16' - - name: Check out the repository - uses: actions/checkout@v2 - - name: Kerberos auth example run: npm run kerberos-auth diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 184f4ba..ee9b2fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,23 +4,21 @@ name: Node.js CI on: - push: - branches: [ master ] - pull_request: - branches: [ master ] + push: + branches: [ master ] + pull_request: + branches: [ master ] jobs: - build: - runs-on: windows-latest - steps: - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '16' - - run: node -v - - name: Check out the repository - uses: actions/checkout@v2 - - name: Npm install - run: npm install - - name: Run Tests - run: npm run test + build: + runs-on: windows-latest + environment: CI + steps: + - uses: DevExpress/testcafe-build-system/actions/prepare@main + with: + node-version: 'latest' + - run: node -v + - name: Npm install + run: npm install + - name: Run Tests + run: npm run test