Bump GrantBirki/comment from 2.0.5 to 2.0.8 #216
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: lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
# check the node version from the .node-version file | |
- name: fetch node version | |
id: node-version | |
run: | | |
version=$(cat .node-version) | |
echo "version=${version}" >> $GITHUB_OUTPUT | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ steps.node-version.outputs.version }} | |
cache: npm | |
- name: install dependencies | |
run: npm ci | |
- name: format | |
run: npm run format-ci | |
- name: lint | |
run: npm run lint:eslint |