Skip to content

Commit

Permalink
Merge pull request #134 from Abdel-Monaam-Aouini/add-workflow
Browse files Browse the repository at this point in the history
feat: add worklows PR & master
  • Loading branch information
dmonad authored Mar 11, 2023
2 parents 10f650c + 9cd9600 commit c4c3d84
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c4c3d84

Please sign in to comment.