diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-25 22:30:05 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-04-25 22:30:05 +0200 |
| commit | 7b2124ea5f535116ec526ad09babe834cf2fe0a1 (patch) | |
| tree | b89e18b5529eb257c1ba7e744f2bac9306f9e2d8 /.github | |
| parent | c40490eb087e2013057bda62f394f4043b678d15 (diff) | |
| download | gohugo-theme-ed-7b2124ea5f535116ec526ad09babe834cf2fe0a1.tar.gz | |
Setup code linting
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cs.yml | 27 |
1 files changed, 9 insertions, 18 deletions
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 |
