File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 3838 DEVEL_COVER_OPTIONS : ' -ignore,^local/'
3939 steps :
4040 - uses : actions/checkout@v4
41+ with :
42+ fetch-depth : 0
43+ if : matrix.resolver == 'snapshot'
44+ - uses : actions/checkout@v4
45+ if : matrix.resolver != 'snapshot'
4146 - uses : actions/setup-node@v4
4247 with :
4348 node-version : ' 18'
8388 run : cover -report codecov
8489 env :
8590 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
91+ - name : Install precious
92+ run : ./bin/install-precious /usr/local/bin
93+ - name : Install perlimports
94+ run : cpm install -g App::perlimports
95+ if : matrix.resolver == 'snapshot'
96+ - name : Fetch master
97+ run : git fetch origin master:master
98+ if : github.ref != 'refs/heads/master' && matrix.resolver == 'snapshot'
99+ - name : Lint files in diff (branch)
100+ run : precious lint -d master
101+ if : github.ref != 'refs/heads/master' && matrix.resolver == 'snapshot'
102+ - name : Lint all files (master)
103+ run : precious lint --all
104+ if : github.ref == 'refs/heads/master' && matrix.resolver == 'snapshot'
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- # This is for installing precious in a Docker container
3+ # This is for installing precious and other 3rd party libs needed for linting
4+ # in CI
45
56set -euo pipefail
67
You can’t perform that action at this time.
0 commit comments