chore: update dprint config
This commit is contained in:
4
.github/config/dprint.json
vendored
4
.github/config/dprint.json
vendored
@@ -1,6 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://dprint.dev/schemas/v0.json",
|
|
||||||
"projectType": "openSource",
|
|
||||||
"incremental": true,
|
"incremental": true,
|
||||||
"indentWidth": 2,
|
"indentWidth": 2,
|
||||||
"typescript": {
|
"typescript": {
|
||||||
@@ -21,6 +19,6 @@
|
|||||||
".github/scripts/quickstart/**/*"
|
".github/scripts/quickstart/**/*"
|
||||||
],
|
],
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"https://plugins.dprint.dev/typescript-0.68.0.wasm"
|
"https://plugins.dprint.dev/typescript-0.83.0.wasm"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -23,15 +23,13 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup Dprint
|
|
||||||
run: |
|
|
||||||
curl -fsSL https://dprint.dev/install.sh | sh
|
|
||||||
cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
|
|
||||||
- name: Checkout master
|
- name: Checkout master
|
||||||
run: git checkout master
|
run: git checkout master
|
||||||
- name: Format code
|
- name: Format code
|
||||||
run: |
|
run: |
|
||||||
dprint fmt --config .github/config/dprint.json
|
npm install -g dprint
|
||||||
|
mkdir -v -p /home/runner/.cache/dprint/cache
|
||||||
|
npx dprint fmt --config .github/config/dprint.json
|
||||||
- name: Publish formatted code
|
- name: Publish formatted code
|
||||||
run: |
|
run: |
|
||||||
set +e
|
set +e
|
||||||
|
|||||||
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -39,9 +39,9 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Format code with dprint
|
- name: Format code with dprint
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://dprint.dev/install.sh | sh
|
npm install -g dprint
|
||||||
cp /home/runner/.dprint/bin/dprint /usr/local/bin/dprint
|
mkdir -v -p /home/runner/.cache/dprint/cache
|
||||||
dprint fmt --config .github/config/dprint.json
|
npx dprint fmt --config .github/config/dprint.json
|
||||||
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
|
- name: Build lowlighter/metrics:${{ github.head_ref || 'master' }}
|
||||||
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
|
run: docker build -t lowlighter/metrics:$(echo ${{ github.head_ref || 'master' }} | sed 's/\//-/g') .
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
|||||||
Reference in New Issue
Block a user