mirror of
https://github.com/curlconverter/curlconverter.git
synced 2022-05-22 02:35:29 +03:00
lint once (#384)
* lint only once * don't try to run deploy action on forks
This commit is contained in:
committed by
GitHub
parent
636fe09cdd
commit
733f110e56
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@@ -7,6 +7,17 @@ on:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16"
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
- run: npx prettier --check .
|
||||
|
||||
test:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
@@ -19,19 +30,17 @@ jobs:
|
||||
fail-fast: false
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
- run: npx prettier --check .
|
||||
- run: npm test
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: test
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && github.repository_owner == 'curlconverter'
|
||||
steps:
|
||||
- name: Deploy demo site
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
|
||||
@@ -109,10 +109,6 @@ You can run only the tests for a specific language generator with:
|
||||
npm test -- --language=python
|
||||
```
|
||||
|
||||
I recommend setting this up with a debugger so you can see exactly what the parser is passing to the generator.
|
||||
Here's my Intellij run configuration for a single test:
|
||||

|
||||
|
||||
Before submitting a PR, please check that your JS code conforms to our code style with
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user