From 056b9ee1fd4b938f362ae1e05ef9cea59c58e964 Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Tue, 21 Jan 2025 23:22:37 +0300 Subject: [PATCH] ci: GitHub action for CI --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..5054ffe --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - '**' + pull_request: + types: [opened, synchronize, reopened] + +jobs: + Build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 1 + - uses: actions/setup-node@v4 + with: + node-version: '22' + - name: Install pnpm + uses: pnpm/action-setup@v4 + - name: Environment details + run: pnpm version + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm run build + - name: Test + run: pnpm run test:unit + - name: Upload coverage data + uses: actions/upload-artifact@v4 + with: + name: lcov.info + path: out/coverage/lcov.info