Skip to content

Commit

Permalink
artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Dec 21, 2023
1 parent db57293 commit b4e1bd1
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,26 @@ on:
- '**'

jobs:
install-dependencies:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies
run: npm ci --no-audit --no-progress
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: node_modules

eslint:
name: ESLint
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -19,11 +37,14 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- uses: actions/download-artifact@v4
with:
path: node_modules
- run: npm run lint:js

stylelint:
name: StyleLint
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -32,11 +53,14 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- uses: actions/download-artifact@v4
with:
path: node_modules
- run: npm run lint:css

type-checking:
name: Type checking
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -45,11 +69,14 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- uses: actions/download-artifact@v4
with:
path: node_modules
- run: npm run check-types

test:
name: Testing
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -58,5 +85,7 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: npm
cache-dependency-path: package-lock.json
- run: npm ci --no-audit --no-progress
- uses: actions/download-artifact@v4
with:
path: node_modules
- run: npm test

0 comments on commit b4e1bd1

Please sign in to comment.