Skip to content

Commit

Permalink
added basic ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienR1 committed Jan 29, 2025
1 parent a3b527a commit a223d35
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
pull_request:

jobs:
common:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/common
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm ci
- run: npm run build

web:
needs: common
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install common library
working-directory: ./packages/common
run: |
npm ci
npm run build
- run: npm ci
- run: npm run lint
- run: npm run test --if-present
- run: npm run build

0 comments on commit a223d35

Please sign in to comment.