Skip to content

Commit

Permalink
feat(types): ajout d'un package commun pour les types avec classifica…
Browse files Browse the repository at this point in the history
…tion entre données fetchées par `hasura` et `elastic` (#1370)

* fix: build encore

* fix: types

* fix: types

* fix: merge

* Revert "fix: merge"

This reverts commit ec1d2a9.

* Reapply "fix: merge"

This reverts commit de88a84.

* Revert "Reapply "fix: merge""

This reverts commit 2243300.

* empty

* fix: merge

* fix: test

* fix: build encore
  • Loading branch information
maxgfr authored May 2, 2024
1 parent ef8b4c5 commit a5c7463
Show file tree
Hide file tree
Showing 151 changed files with 886 additions and 974 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,37 @@ jobs:
run: |
yarn workspace ${{ matrix.repositories }} lint
Type-check:
name: Type-check
runs-on: ubuntu-latest
needs: [build]
strategy:
fail-fast: false
matrix:
repositories:
[
"frontend",
"alert-cli",
"ingester",
"export-elasticsearch",
"@socialgouv/cdtn-types",
"@shared/utils",
]
steps:
- uses: actions/cache@v2
name: Restore build
with:
path: ./*
key: ${{ github.sha }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20.3.1
cache: "yarn"
- name: Type-check ${{ matrix.repositories }}
run: |
yarn workspace ${{ matrix.repositories }} type-check
test:
name: Test
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions package-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ scripts:
test:
default: lerna run --stream --parallel test

type-check:
default: lerna run --stream --parallel type-check

docker:
up:
default: docker-compose up --build postgres hasura
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"k8s": "yarn --silent --cwd .k8s",
"prepare": "test -n \"$CI\" || husky install",
"clean": "lerna clean",
"type-check": "nps type-check",
"precommit": "lerna run --exclude-dependents --parallel 1 --since HEAD --stream"
},
"workspaces": [
Expand Down
43 changes: 0 additions & 43 deletions shared/types/export/global.ts

This file was deleted.

11 changes: 0 additions & 11 deletions shared/types/export/prequalified.ts

This file was deleted.

32 changes: 0 additions & 32 deletions shared/types/global.ts

This file was deleted.

Loading

0 comments on commit a5c7463

Please sign in to comment.