Skip to content

Commit eb338fd

Browse files
authored
Run eslint check correctly with forked PRs (#4606)
Signed-off-by: Outsider <[email protected]>
1 parent 3e2dd25 commit eb338fd

File tree

2 files changed

+8
-39
lines changed

2 files changed

+8
-39
lines changed

.github/workflows/mocha.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,18 @@ jobs:
3131
- 15
3232
steps:
3333
- uses: actions/checkout@v2
34-
- uses: actions/setup-node@v1
34+
- uses: actions/setup-node@v2
3535
with:
3636
node-version: '${{ matrix.node }}'
3737
- run: npm install --production
3838
- run: npm run test:smoke
3939

40-
eslint:
41-
name: ESLint Check
40+
lint:
41+
name: Linting code and markdown
4242
runs-on: ubuntu-latest
4343
needs: smoke
4444
steps:
45-
- uses: actions/checkout@v2
46-
- uses: bradennapier/[email protected]
47-
with:
48-
issueSummary: false
49-
npmInstall: false
50-
51-
markdown:
52-
name: Markdown Check
53-
runs-on: ubuntu-latest
54-
needs: smoke
55-
steps:
56-
- uses: actions/setup-node@v1
45+
- uses: actions/setup-node@v2
5746
with:
5847
node-version: 14
5948
- uses: actions/checkout@v2
@@ -66,8 +55,8 @@ jobs:
6655
ubuntu-latest-node-v14-
6756
- name: Install Dependencies
6857
run: npm ci --ignore-scripts
69-
- name: 'Check Markdown'
70-
run: npm start lint.markdown
58+
- name: 'Check lint'
59+
run: npm start lint
7160

7261
test-node:
7362
name: 'Node.js [v${{ matrix.node }} / ${{ matrix.os }}]'
@@ -148,7 +137,7 @@ jobs:
148137
- name: Install libnotify-bin (Linux)
149138
if: "${{ matrix.os == 'ubuntu-latest' }}"
150139
run: sudo apt-get install libnotify-bin
151-
- uses: actions/setup-node@v1
140+
- uses: actions/setup-node@v2
152141
with:
153142
node-version: '${{ matrix.node }}'
154143
- uses: actions/checkout@v2
@@ -186,7 +175,7 @@ jobs:
186175
timeout-minutes: 20
187176
runs-on: ubuntu-latest
188177
steps:
189-
- uses: actions/setup-node@v1
178+
- uses: actions/setup-node@v2
190179
with:
191180
node-version: 14
192181
- uses: actions/checkout@v2

.github/workflows/purge-expired-artifacts.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)