Skip to content

Commit

Permalink
ci: add jobs deps, add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgrasset committed Oct 18, 2023
1 parent cdfd585 commit 5b5ef00
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/lint.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Linters Validation
name: CI Validation

on:
push:
Expand Down Expand Up @@ -31,9 +31,9 @@ jobs:
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

eslint:

needs:
- commitlint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
Expand All @@ -46,3 +46,24 @@ jobs:

- name: Run Eslint
run: npm run lint

build:
needs:
- eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install dependencies
run: npm ci

- name: Build from source
if: github.event_name == 'push'
run: npm run build

0 comments on commit 5b5ef00

Please sign in to comment.