From 0f7ee2baf2b9cf7bfbc2c89476c2047196218cc0 Mon Sep 17 00:00:00 2001 From: FaberVitale Date: Sun, 17 Dec 2023 10:42:26 +0100 Subject: [PATCH] chore(CI): add ci pipeline --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..6c7907b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + env: + HUSKY: '0' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v3 + with: + node-version: '20.10.0' + cache: 'pnpm' + - name: log info + run: > + printf 'commit -> %s\nbranch -> %s\n' "$(git rev-parse --short HEAD)" "$(git branch --show-current)" + - name: Install dependencies + run: pnpm install --frozen-lockfile + - name: Build + run: pnpm run build