Skip to content

Commit

Permalink
Merge pull request #2 from surenpoghosian/feature/CI-CD
Browse files Browse the repository at this point in the history
[feature/CI-CD] add CI
  • Loading branch information
surenpoghosian authored Jul 23, 2024
2 parents f580e65 + 3316975 commit ff15ac1
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14, 16, 18, 20]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Compile TypeScript
run: npm run build

- name: Run tests
run: npm test

0 comments on commit ff15ac1

Please sign in to comment.