Skip to content

Commit

Permalink
concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Feb 28, 2024
1 parent 59ee1ee commit 89cabfb
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/cancel.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test

on:
pull_request:
branches:
- maintenance-3.1.x
workflow_call:
inputs:
branch:
description: 'The current branch'
default: maintenance-3.1.x
type: string
required: false
secrets:
NPM_PACKAGES_TOKEN:
description: 'NPM_PACKAGES_TOKEN'
required: true
SAUCE_ACCESS_KEY:
description: 'SAUCE_ACCESS_KEY'
required: true

env:
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.1.x' }}

jobs:
unit-test:
runs-on: [ self-hosted, master ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || inputs.branch || 'maintenance-3.1.x' }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH_NAME }}

- uses: actions/setup-node@v3
with:
registry-url: 'https://packages.nuxeo.com/repository/npm-public/'
scope: '@nuxeo'
node-version: 18

- name: Install
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm install

- name: Unit tests
env:
SAUCE_USERNAME: nuxeo-web-ui
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
run: npm run test

0 comments on commit 89cabfb

Please sign in to comment.