test push #11
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: 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' | ||
- name: Check changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
with: | ||
files: | | ||
docs/** | ||
- 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: 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 |