From 9cd9600ce132fcbddaf59586ee770821f721d4c9 Mon Sep 17 00:00:00 2001 From: Abdel-Monaam-Aouini Date: Fri, 10 Mar 2023 21:54:27 +0100 Subject: [PATCH] feat: add worklows PR & master --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 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..d38865e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + branches: + - '**' + paths-ignore: + - 'dist/**' + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + matrix: + node-version: [18.x, 16.x, 14.x] + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: 📥 Install + run: npm install + + - name: Unit tests + run: npm test + + - name: ESLint checks + run: npm run lint + + - name: Build + run: npm run dist + + - name: Preversion + run: npm run preversion \ No newline at end of file