From 369dd12358b9ad5abdfa244e4762c318f5e3564d Mon Sep 17 00:00:00 2001 From: Joshua Melville Date: Fri, 15 Nov 2024 16:52:05 +0200 Subject: [PATCH] add biome and test workflows --- .github/workflows/lint-and-format.yml | 28 +++++++++++++++++++++++++++ .github/workflows/test.yaml | 27 ++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/lint-and-format.yml create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/lint-and-format.yml b/.github/workflows/lint-and-format.yml new file mode 100644 index 00000000..09e74fde --- /dev/null +++ b/.github/workflows/lint-and-format.yml @@ -0,0 +1,28 @@ +name: Lint and Format + +on: + pull_request: + push: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install pnpm + run: npm install -g pnpm + - name: Cache pnpm + uses: actions/cache@v3 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + - name: Install dependencies + run: pnpm install + - name: Run Biome + run: pnpm biome check . \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..aae19794 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,27 @@ +name: Dependency Update Tests + +on: + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + - name: Install pnpm + run: npm install -g pnpm + - name: Cache pnpm + uses: actions/cache@v3 + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} + - name: Install dependencies + run: pnpm install + - name: Run All Tests + run: pnpm test