From 8bacda27a905123bc305a9a28a06b9a6793a0d6e Mon Sep 17 00:00:00 2001 From: ennmichael Date: Wed, 8 Feb 2023 21:11:03 +0100 Subject: [PATCH] github workflow --- .github/workflows/eslint.yaml | 23 +++++++++++++++++++++++ .github/workflows/formatting.yaml | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/eslint.yaml create mode 100644 .github/workflows/formatting.yaml diff --git a/.github/workflows/eslint.yaml b/.github/workflows/eslint.yaml new file mode 100644 index 0000000..56905c0 --- /dev/null +++ b/.github/workflows/eslint.yaml @@ -0,0 +1,23 @@ +name: pull request + +on: + pull_request: + push: + branches: [main] + +jobs: + formatting: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + + - name: Install Dependencies + run: npm i + + - name: Check Eslint + run: npx eslint . diff --git a/.github/workflows/formatting.yaml b/.github/workflows/formatting.yaml new file mode 100644 index 0000000..6e51f36 --- /dev/null +++ b/.github/workflows/formatting.yaml @@ -0,0 +1,23 @@ +name: pull request + +on: + pull_request: + push: + branches: [main] + +jobs: + formatting: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + + - name: Install Dependencies + run: npm i + + - name: Check Formatting + run: npx prettier --check .