Skip to content

Commit

Permalink
Split validate action
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Oct 6, 2023
1 parent 286e0b6 commit 02ff930
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ESLint

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
Validate:
strategy:
matrix:
os: [ubuntu-20.04]

runs-on: ${{ matrix.os }}

steps:

- name: Fetch Repository
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.16.0
cache: 'npm'

- name: Install Modules
run: npm ci

- name: Run Lint
run: npm run eslint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Validate
name: Test

on:
push:
Expand Down Expand Up @@ -32,9 +32,6 @@ jobs:
- name: Install Modules
run: npm ci

- name: Run Lint
run: npm run eslint

- name: Run Unit Tests
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 02ff930

Please sign in to comment.