Merge pull request #75 from ember-nexus/chore/update-readme #153
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: Code Style | |
on: | |
- push | |
- fork | |
- pull_request | |
jobs: | |
code-style: | |
runs-on: ubuntu-latest | |
name: 'Check code style for Node.js v${{ matrix.node-version }}' | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: ['19'] | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ matrix.node-version }}' | |
- uses: actions/checkout@v3 | |
- name: 'Cache node_modules' | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-v${{ matrix.node-version }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-v${{ matrix.node-version }}- | |
- name: Install dependencies | |
run: yarn install --dev | |
- name: Run syntax linter | |
run: yarn run cs |