From a4b520a13a5cbd0f45936e8cb34876d71480508d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 17 Oct 2024 21:10:04 +0200 Subject: [PATCH] Add pl-hooks CI workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .github/workflows/pl-hooks.yaml | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/pl-hooks.yaml diff --git a/.github/workflows/pl-hooks.yaml b/.github/workflows/pl-hooks.yaml new file mode 100644 index 000000000..c1d03506b --- /dev/null +++ b/.github/workflows/pl-hooks.yaml @@ -0,0 +1,41 @@ +name: pl-hooks CI + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + runs-on: ubuntu-latest + name: Test for a successful build + strategy: + matrix: + node-version: [21.x] + + steps: + - name: Install system dependencies + run: sudo apt install -y unzip + + - name: Checkout code + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install deps + working-directory: ./packages/pl-hooks + run: yarn install --ignore-scripts + + - name: Lint + working-directory: ./packages/pl-hooks + run: yarn lint + + - name: build + env: + NODE_ENV: production + working-directory: ./packages/pl-hooks + run: yarn build