Merge pull request #266 from digitoimistodude/dependabot/npm_and_yarn… #460
This file contains hidden or 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: JS | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| name: Test JS | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v3 | |
| - name: Read .nvmrc | |
| run: echo ::set-output name=NVMRC::$(cat .nvmrc) | |
| id: nvm | |
| - name: Setup node | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
| - name: Install packages and test JS | |
| run: | | |
| npm i | |
| npx eslint -c .eslintrc.js js/src/ |