Merge pull request #291 from standard/explicit-package-files #126
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: 'ci' | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
ci: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v3' | |
- name: 'Use Node.js' | |
uses: 'actions/setup-node@v3' | |
with: | |
node-version: 'lts/*' | |
- name: 'Cache Node dependencies' | |
uses: 'actions/[email protected]' | |
with: | |
path: '~/.npm' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: 'Install dependencies' | |
run: 'npm install' | |
- uses: wagoid/commitlint-github-action@v5 | |
- name: 'Run tests' | |
run: 'npm test' |