-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (36 loc) · 1.11 KB
/
ci.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Continuous Integration"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version: 18.x
- name: Cache node_modules
id: cache-npm-packages
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
env:
cache-name: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }}
- name: Install apt packages
if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: |
sudo apt-get update -y
sudo apt-get install -y libkrb5-dev
- name: Install Dependencies
if: ${{ steps.cache-npm-packages.outputs.cache-hit != 'true' }}
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm test