lint once (#384)

* lint only once

* don't try to run deploy action on forks
This commit is contained in:
Boris Verkhovskiy
2022-04-13 23:15:36 -07:00
committed by GitHub
parent 636fe09cdd
commit 733f110e56
2 changed files with 14 additions and 9 deletions

View File

@@ -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

View File

@@ -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:
![Screenshot of intellij debug configuration](/docs/intellijconfig.png)
Before submitting a PR, please check that your JS code conforms to our code style with
```sh