From a03b385e555b0c8583f744b7d1404c22be9d741b Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 9 Feb 2023 10:28:42 +0000 Subject: [PATCH] update workflows --- .github/workflows/eslint.yaml | 13 +++++-------- .github/workflows/formatting.yaml | 15 +++++---------- 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml index f636117..af3ef57 100644 --- a/.github/workflows/eslint.yaml +++ b/.github/workflows/eslint.yaml @@ -1,10 +1,8 @@ -name: pull request - +name: Linting on: pull_request: push: branches: [main] - jobs: formatting: timeout-minutes: 15 @@ -12,12 +10,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Node.js uses: actions/setup-node@v3 - + with: + node-version: 16 - name: Install Dependencies - run: npm i - + run: yarn install - name: Check Eslint - run: npm run eslint + run: yarn eslint diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml index 97608b5..25177e3 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/formatting.yaml @@ -1,10 +1,6 @@ -name: pull request - +name: Formatting on: pull_request: - push: - branches: [main] - jobs: formatting: timeout-minutes: 15 @@ -12,12 +8,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Setup Node.js uses: actions/setup-node@v3 - + with: + node-version: 16 - name: Install Dependencies - run: npm i - + run: yarn Install - name: Check Formatting - run: npm run format + run: yarn prettier --check .