Skip to content

test push

test push #20

Workflow file for this run

name: PR
on:
push
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
install-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
# Number of commits to fetch. 0 indicates all history for all branches and tags.
fetch-depth: 0
- name: Check changed files
id: changed-files
uses: tj-actions/changed-files@v38.2.2
with:
files: |
- docs/**
- .gitignore
# - name: Check if all changes are in the docs folder
# id: is_docs_only
# run: echo "docs_only=${{ steps.changed-files-specific.outputs.only_modified == 'true' }}" >> "$GITHUB_OUTPUT"
- name: Print all changed files
if: steps.changed-files-yaml.outputs.any_changed == 'true'
run: |
echo "One or more test file(s) has changed."
echo "List all the files that have changed: ${{ steps.changed-files-yaml.outputs.all_changed_files }}"
- name: Install deps
if: ${{ steps.changed-files.outputs.only_modified == 'true' }}
run: npm ci
# - name: Lint
# run: npm run lint
# - name: Test
# run: npm run test