From 7b2124ea5f535116ec526ad09babe834cf2fe0a1 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 25 Apr 2022 22:30:05 +0200 Subject: Setup code linting --- .github/workflows/cs.yml | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to '.github') diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 0b24e63..8f2efdb 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -18,29 +18,20 @@ on: jobs: lint: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-20.04 name: Code linting - # The maximum number of minutes to let a workflow run - # before GitHub automatically cancels it. Default: 360 - timeout-minutes: 30 - - strategy: - # When set to true, GitHub cancels - # all in-progress jobs if any matrix job fails. - fail-fast: false - - matrix: - node: - - '14.x' - os: - - ubuntu-20.04 - steps: - name: Checkout code uses: actions/checkout@v3 - - name: Set up Node ${{ matrix.node }} + - name: Set up Node 14.x uses: actions/setup-node@v3 with: - node-version: ${{ matrix.node }} + node-version: '14.x' + + - name: Install npm dependencies + run: npm ci + + - name: Code linting + run: npm run lint -- cgit v1.2.3