Skip to content

chore(deps): bump dprint from 0.41.0 to 0.55.1 #138

chore(deps): bump dprint from 0.41.0 to 0.55.1

chore(deps): bump dprint from 0.41.0 to 0.55.1 #138

Workflow file for this run

name: Build, test and analyze
on:
pull_request:
branches: [ master ]
workflow_call:
workflow_dispatch:
jobs:
# Run linter to ensure new code respect coding rules
lint:
name: Lint code
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Setup metrics
run: npm ci
- name: Check contributions requirements
run: npm run test-contrib
- name: Run linter
run: npm run linter
- name: Format code
run: |
npm ci --ignore-scripts
mkdir -v -p /home/runner/.cache/dprint/cache
npm exec dprint check -- --config .github/config/dprint.json
# Build docker image from branch and run tests
build:
name: Build and test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Build gh-metrics/metrics:${{ github.head_ref || 'master' }}
env:
GIT_REF: ${{ github.head_ref || 'master' }}
run: docker build -t gh-metrics/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') .
- name: Run tests
env:
GIT_REF: ${{ github.head_ref || 'master' }}
run: docker run --rm --entrypoint="" gh-metrics/metrics:$(echo $GIT_REF | sed 's/[^a-z]/-/g') npm run test-metrics