Skip to content

fix yaml

fix yaml #3

Workflow file for this run

# Name your workflow
name: CI
# Set on which events you want run the actions.
# In this case the workflow will run on push for master and on pull request for master and develop branches
on:
push:
branches: '**'
pull_request:
branches: '**'
jobs:
# This workflow contains a job called "integration"
integration:
# A strategy that defines different variations of an environment to run each job in.
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [16]
# The runners that the job will run on
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout current branch
with:
ref: ${{ github.ref }}
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/[email protected]
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: node_modules
# An explicit key for restoring and saving the cache
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Run ESLint
run: npm run lint