Skip to content

chore(deps): update dependency prettier to v3 #1410

chore(deps): update dependency prettier to v3

chore(deps): update dependency prettier to v3 #1410

Workflow file for this run

name: "@coat/cli"
on:
push:
branches-ignore:
- renovate/boxen-7.x
- renovate/chalk-5.x
- renovate/execa-6.x
- renovate/leven-4.x
- renovate/ora-7.x
- renovate/strip-ansi-7.x
- renovate/wrap-ansi-8.x
- renovate/inquirer-9.x
env:
FORCE_COLOR: 3
jobs:
build:
name: Lint, Test & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install latest npm version
run: npm install --global npm
- uses: bahmutov/npm-install@v1
- name: Build
run: npm run --ws build
- name: Lint
run: npm run --ws lint
- name: Ensure coat projects are in sync
run: npm run --ws --if-present coat -- sync --check
- name: Test
run: |
npm run --ws test -- \
--ci \
--no-cache \
--runInBand \
--verbose \
--coverageReporters json \
--coverageReporters lcov \
--coverageReporters text \
--coverageReporters clover
- name: Upload test coverage information
run: bash <(curl -s https://codecov.io/bash)
- name: Build package artifacts
run: npm pack --ws
- uses: actions/upload-artifact@v3
with:
name: coat
path: "*.tgz"
e2e-tests:
name: E2E tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [14, 16, 18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: "[Workaround] Install npm@8 on Windows with Node.js 14"
run: npm install --global npm@8
if: matrix.os == 'windows-latest' && matrix.node == 14
- name: Install latest npm version
run: npm install --global npm@9
- uses: bahmutov/npm-install@v1
- name: Setup git config for e2e tests
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "<>"
- name: Decrease npm retry factors on macOS
if: matrix.os == 'macos-latest'
run: |
echo "npm_config_fetch_retries=50" >> $GITHUB_ENV
echo "npm_config_fetch_retry_factor=2" >> $GITHUB_ENV
echo "npm_config_fetch_retry_mintimeout=50" >> $GITHUB_ENV
echo "npm_config_fetch_retry_maxtimeout=6000" >> $GITHUB_ENV
- name: Run all tests
run: npm run test:all -- --ci --no-cache --runInBand --verbose
working-directory: ./packages/cli
notify-on-failure:
needs:
- build
- e2e-tests
runs-on: ubuntu-latest
if: failure() # only run this job when any of the previous jobs fail.
steps:
- name: Notify through commit comment
uses: peter-evans/commit-comment@v2
with:
body: "@peterjuras: The workflow failed!"