From 0d82e6ea313dd953b56cdbb5f094a9632c6add78 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Wed, 18 Jun 2025 16:45:52 +0200 Subject: [PATCH] fix workflow --- .github/workflows/test.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1788ae7..2eb7a12 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,29 +1,29 @@ name: Test - on: push: - branches: - - main + branches: [ main ] pull_request: jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v4 + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'pnpm' - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' - cache: 'pnpm' + - name: Install dependencies + run: pnpm install - - name: Install pnpm - uses: pnpm/action-setup@v4 + - name: ESLint + run: pnpm lint + + - name: Prettier + run: pnpm format:check - - name: Install dependencies - run: pnpm install - - - name: Run tests - run: pnpm test + - name: Run Tests + run: pnpm test \ No newline at end of file