mirror of
https://github.com/owncast/owncast.git
synced 2024-11-26 14:56:14 +03:00
Specify checkout ref for prettier. Reorder jobs
This commit is contained in:
parent
735ac83bf4
commit
ec3fe3d505
1 changed files with 13 additions and 9 deletions
22
web/.github/workflows/linter.yml
vendored
22
web/.github/workflows/linter.yml
vendored
|
@ -5,10 +5,23 @@ on:
|
|||
pull_request:
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Make sure the actual branch is checked out when running on pull requests
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
linter:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
# Make sure the actual branch is checked out when running on pull requests
|
||||
ref: ${{ github.head_ref }}
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 9.8.0
|
||||
|
@ -21,15 +34,6 @@ jobs:
|
|||
ignore-path: '.eslintignore'
|
||||
extensions: 'ts,tsx,js,jsx'
|
||||
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Make sure the actual branch is checked out when running on pull requests
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Prettify code
|
||||
|
|
Loading…
Reference in a new issue