fix: linter #71
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: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
- master | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [lts/*] | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@master | |
- name: Setup node env π | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Get npm cache directory path π | |
id: npm-cache-dir-path | |
run: echo "::set-output name=dir::$(npm config get cache)" | |
- name: Cache node_modules π¦ | |
uses: actions/[email protected] | |
id: npm-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.npm-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-npm-${{ hashFiles('**/npm.lock') }} | |
restore-keys: | | |
${{ runner.os }}-npm- | |
- name: Install dependencies π¨π»βπ» | |
run: npm install | |
- name: Run linter π | |
run: npm run lint | |
# - name: Run tests π§ͺ | |
# run: npm run test |