From 0226245d7767d6286e6f945af4017e2087091717 Mon Sep 17 00:00:00 2001 From: Daryl Collins Date: Wed, 27 Mar 2024 04:04:22 +0000 Subject: [PATCH] (chore): Define github workflows --- .github/CODEOWNERS | 2 ++ .github/workflows/pr_checks.yml | 55 +++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/pr_checks.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..ae53b23 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +#Default reviewers +* @maximushaximus diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml new file mode 100644 index 0000000..3937ae2 --- /dev/null +++ b/.github/workflows/pr_checks.yml @@ -0,0 +1,55 @@ +name: lint +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + lint: + name: "Lint" + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Install PNPM + uses: pnpm/action-setup@v2 + with: + version: 6.32.9 + - name: Checkout repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'pnpm' + - name: Install project dependencies + run: pnpm install + - name: Lint + run: pnpm lint + tests: + needs: 'lint' + name: 'Tests' + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Install PNPM + uses: pnpm/action-setup@v2 + with: + version: 6.32.9 + - name: Checkout repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + cache: 'pnpm' + - name: Install project dependencies + run: pnpm install + - name: Lint + run: pnpm lint