Don't need to build playground project #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |