Skip to content

Release

Release #526

Workflow file for this run

name: Test
on:
pull_request:
push:
branches:
- master
- release
concurrency:
group: test-${{ github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
node-version:
- 20.9.0
steps:
- name: Checkout Katalon Agent
uses: actions/checkout@v4
- name: Cache
id: cache-packages
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
- name: Install packages
if: steps.cache-packages.outputs.cache-hit != 'true'
run: npm ci
- name: Run test
run: |
npm run eslint
npm run test:coverage || true
sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/lcov.info
- name: Sonar Cloud Scan
uses: SonarSource/[email protected]
with:
args: >
-Dsonar.verbose=true
-X
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Run ESLint check
uses: sibiraj-s/action-eslint@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
eslint-args: '-c .eslintrc.yml'
extensions: 'js'
annotations: true