Skip to content

chore(deps): update dependency eslint-config-standard to v17.1.0 #2128

chore(deps): update dependency eslint-config-standard to v17.1.0

chore(deps): update dependency eslint-config-standard to v17.1.0 #2128

Workflow file for this run

name: build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Lint
run: |
warnings=$(pnpm lint:all 2>&1)
echo "Matrix node version: ${{ matrix.node-version }}"
if [[ "${{ matrix.node-version }}" == "18.x" ]]; then
echo "$warnings"
fi
- name: Format Check
run: |
pnpm prettier:all
pnpm lint:all --fix --quiet
git diff --exit-code -- .
- name: Build - each packages build script
run: |
pnpm build
- name: Build - root tsconfig.json as used by IDE /test code
run: |
# Build the root tsconfig.json, seems to require a prior build step
pnpm tsc -p tsconfig.json --noEmit
- name: Test
run: |
function retry() {
local n=0
local try=$1
local cmd="${@:2}"
[[ $# -le 1 ]] && {
echo "Usage $0 <retry_number> <Command>"
}
until [[ $n -ge $try ]]; do
$cmd && break || {
echo "Command Fail.."
# echo the n++ else the ((n++)) *seems* to be treated as an exit code
# and -u will bail
echo $((n++))
echo "retry $n ::"
sleep 1
}
done
}
retry 3 pnpm cover
env:
CI: true
- name: Report coverage
if: matrix.node-version == '14.x'
run: pnpm codecov
env:
CI: true