actionsx / prettier Goto Github PK
View Code? Open in Web Editor NEW๐จ Native, blazingly-fast Prettier CLI on Github Actions
License: MIT License
๐จ Native, blazingly-fast Prettier CLI on Github Actions
License: MIT License
Hey! ๐๐ผ
For some reason, when I run this action in CI vs locally, I get different results:
https://github.com/coder/code-server/actions/runs/3155272047/jobs/5133765429#step:3:100
local
I cannot figure out what's wrong. Any ideas?
Relevant PR: coder/code-server#5605
there are very minor differences between 3.0.0
and 3.0.3
. I use this action which is preventing me from bumping to 3.0.3
No error running local, but running on Actions it will return an error:
.prettierrc.json:
{
"printWidth": 120
}
Action
jobs:
prettier:
name: prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Prettier Check
uses: actionsx/prettier@v2
with:
args: --check "**/*.{js,jsx,ts,tsx}"
For example: https://github.com/ClassChats/ClassChats/pull/10/checks?check_run_id=1042505214
When I run the command locally it works fine, and the files definitely exist.
Using **/*.js
gives me the error seen at https://github.com/KTibow/BangleApps/runs/4637774686?check_suite_focus=true.
Specifically creyD/prettier_action. As far as I can tell the main difference is using JS and not docker/shell. Yours runs faster but his seems to be more full-featured. I think that adding a comparison to your readme would be worthwhile to show your advantages/disadvantages.
So apparently this works:
--parser json-stringify --write "myfolder/intl_*.arb"
and this doesn't:
--parser json-stringify --write "myfolder/*.arb"
I can only imagine that /*
is somehow parsed as a comment in javascript...
Error message:
Error: No files matching the pattern were found: "[object Object]".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.