-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (27 loc) · 814 Bytes
/
ci.yml
File metadata and controls
30 lines (27 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Flyover SDK CI
on:
push:
branches: [ main ]
pull_request:
permissions: read-all
jobs:
validation:
name: Code integrity validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22.12.0'
- name: NPM Login
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
- name: Install dependencies
run: npm ci && npm run build
- name: Validate code format
run: npm run lint:validation
- name: Run unit tests
run: npm run test