3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-04-23 20:05:32 +00:00

Add initial eslint setup (#88)

This commit is contained in:
BSKY 2019-11-13 06:48:02 +09:00 committed by Josh Gross
parent 31508256ff
commit fb50aa45ec
12 changed files with 1044 additions and 91 deletions

View file

@ -1,4 +1,5 @@
name: Tests
on:
pull_request:
branches:
@ -14,14 +15,16 @@ on:
jobs:
test:
name: Test on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
@ -29,7 +32,12 @@ jobs:
- run: npm ci
- name: Prettier Format Check
if: matrix.os == 'ubuntu-latest'
run: npm run format-check
- name: ESLint Check
if: matrix.os == 'ubuntu-latest'
run: npm run lint
- name: Build & Test
run: npm run test