Skip to content

Commit 1dacdd8

Browse files
authored
Setup CI with GitHub Actions (#15)
1 parent b70bbd3 commit 1dacdd8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: FeatureManagement-JavaScriptProvider CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- preview
8+
- release/*
9+
pull_request:
10+
branches:
11+
- main
12+
- preview
13+
- release/*
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
strategy:
20+
matrix:
21+
node-version: [18.x, 20.x]
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
cache: 'npm'
30+
- run: npm ci
31+
- run: npm run lint
32+
- run: npm run build
33+
- run: npm test

0 commit comments

Comments
 (0)