-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (38 loc) · 1.15 KB
/
main.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
45
46
47
name: 'ngx-loading-buttons'
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
id: npm-cache
with:
# We also specify `~/.cache` because Cypress binary is installed
# in that location.
path: |
node_modules
~/.cache
key: ${{ runner.os }}-v1-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-v1-npm
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Install dependencies
# If checksum for the `package-lock.json` hasn't changed then we shouldn't run
# `npm ci` because it will hit the `postinstall` hook
# that will run `ngcc` compiler accordingly.
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
- name: Test library
run: npm run test:ngx-loading-buttons
- name: Build library
run: npm run build:ngx-loading-buttons
- name: Build playground
run: npm run build