mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: try removing cache from fmt and lint (#8001)
This commit is contained in:
@@ -188,12 +188,19 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
submodules: true
|
||||
|
||||
- uses: ./.github/actions/setup-node
|
||||
- uses: ./.github/actions/setup-go
|
||||
- uses: buildjet/setup-node@v3
|
||||
with:
|
||||
node-version: 16.16.0
|
||||
|
||||
- uses: buildjet/setup-go@v4
|
||||
with:
|
||||
# This doesn't need caching. It's super fast anyways!
|
||||
cache: false
|
||||
go-version: 1.20.5
|
||||
|
||||
- name: Install prettier
|
||||
run: npm install -g prettier
|
||||
|
||||
- name: Install shfmt
|
||||
run: go install mvdan.cc/sh/v3/cmd/shfmt@v3.5.0
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@
|
||||
"chromatic": "chromatic",
|
||||
"dev": "vite",
|
||||
"format:check": "prettier --cache --check '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"format:types": "prettier --write 'src/api/typesGenerated.ts'",
|
||||
"format:write": "prettier --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"format:types": "prettier --cache --write 'src/api/typesGenerated.ts'",
|
||||
"format:write": "prettier --cache --write '../**/*.{css,html,js,json,jsx,md,ts,tsx,yaml,yml}'",
|
||||
"format:write:only": "prettier --write",
|
||||
"lint": "yarn typegen && yarn run lint:types && jest --selectProjects lint",
|
||||
"lint:fix": "FIX=true yarn lint",
|
||||
|
||||
Reference in New Issue
Block a user