From bc6d9bcfc7c4db67beb22ac7eb8b566cf15eb021 Mon Sep 17 00:00:00 2001 From: klis87 Date: Thu, 12 Dec 2024 16:04:40 +0100 Subject: [PATCH] Try github actions --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..83472ba --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,44 @@ +name: CI Pipeline + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + ci: + runs-on: ubuntu-latest + + steps: + # Step 1: Check out the repository + - name: Checkout code + uses: actions/checkout@v3 + + # Step 2: Set up Node.js and pnpm + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 # Specify the Node.js version you want + cache: 'pnpm' + + - name: Install pnpm + run: npm install -g pnpm + + # Step 3: Install dependencies + - name: Install dependencies + run: pnpm install + + # Step 4: Build the application + - name: Build + run: pnpm run build + + # Step 5: Lint the code + - name: Lint + run: pnpm run lint + + # Step 6: Run tests with coverage + # - name: Test with coverage + # run: pnpm run test:cover