#DHEV-424 : update(package) : Update eslint (#421) #750
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: saucelab-test | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
node_version: | |
- 18 | |
architecture: | |
- x64 | |
name: Node ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node_version }} | |
architecture: ${{ matrix.architecture }} | |
- run: npm ci | |
- name: Saucelab test | |
id: test | |
continue-on-error: true | |
run: env SAUCE_USERNAME="${{ secrets.SAUCE_USERNAME }}" SAUCE_ACCESS_KEY="${{ secrets.SAUCE_ACCESS_KEY }}" npm run saucelab | |
- name: retry | |
continue-on-error: true | |
id: retry1 | |
if: steps.test.outcome=='failure' | |
run: env SAUCE_USERNAME="${{ secrets.SAUCE_USERNAME }}" SAUCE_ACCESS_KEY="${{ secrets.SAUCE_ACCESS_KEY }}" npm run saucelab | |
- name: set the status | |
if: always() | |
run: | | |
if ${{ steps.test.outcome=='success' || steps.retry1.outcome=='success' }}; then | |
echo fine | |
else | |
exit 1 | |
fi |