Add pl-hooks CI workflow
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
9aa8ded6c6
commit
a4b520a13a
1 changed files with 41 additions and 0 deletions
41
.github/workflows/pl-hooks.yaml
vendored
Normal file
41
.github/workflows/pl-hooks.yaml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue