functions: change directory of middleware #39
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: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [18] | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3.5.3 | |
- name: π Setup node.js | |
uses: actions/setup-node@v3.7.0 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: π¦ Cache node_modules | |
uses: actions/cache@v3.3.1 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: π¨π»βπ» Install dependencies | |
run: npm ci --prefer-offline --no-audit | |
- name: βοΈ Run linter | |
run: npm run lint |