Skip to content

chore: bump version to 3.1.2 for npm publish #58

chore: bump version to 3.1.2 for npm publish

chore: bump version to 3.1.2 for npm publish #58

Workflow file for this run

name: Code Quality
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
validate:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node dependencies
run: |
npm install
npm install --save-dev eslint prettier
- name: Run JavaScript syntax check
run: |
node --check src/index.js
node --check src/ssh-manager.js
- name: Run ESLint
run: npx eslint src/
continue-on-error: true
- name: Run validation script
run: |
chmod +x scripts/validate.sh
./scripts/validate.sh
- name: Check for secrets
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
continue-on-error: true