From ec3fe3d5056e14ce1d189c4ca63ddd0042b2b788 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 14 Mar 2021 11:31:03 -0700 Subject: [PATCH] Specify checkout ref for prettier. Reorder jobs --- web/.github/workflows/linter.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/web/.github/workflows/linter.yml b/web/.github/workflows/linter.yml index 4b95e63f5..b07fcad83 100644 --- a/web/.github/workflows/linter.yml +++ b/web/.github/workflows/linter.yml @@ -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