🔧(ci) add sdk to workflow

Add basic jobs to handle the new sdk.
This commit is contained in:
Nathan Vasse
2025-02-10 16:35:05 +01:00
committed by NathanVss
parent 183e8f6a72
commit c3e4ea0fd1

View File

@@ -175,25 +175,56 @@ jobs:
- name: Check format - name: Check format
run: cd src/frontend/ && npm run check run: cd src/frontend/ && npm run check
lint-sdk:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/sdk/library
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Check linting
run: npm run lint
- name: Check format
run: npm run check
build-sdk:
runs-on: ubuntu-latest
needs: lint-sdk
defaults:
run:
working-directory: src/sdk/library
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Build SDK
run: npm run build
i18n-crowdin: i18n-crowdin:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - uses: actions/create-github-app-token@v1
uses: actions/create-github-app-token@v1
id: app-token id: app-token
with: with:
app-id: ${{ secrets.APP_ID }} app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }} private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }} owner: ${{ github.repository_owner }}
repositories: "infrastructure,secrets" repositories: "infrastructure,secrets"
- - name: Checkout repository
name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
token: ${{ steps.app-token.outputs.token }} token: ${{ steps.app-token.outputs.token }}
- - name: Load sops secrets
name: Load sops secrets
uses: rouja/actions-sops@main uses: rouja/actions-sops@main
with: with:
secret-file: secrets/numerique-gouv/meet/secrets.enc.env secret-file: secrets/numerique-gouv/meet/secrets.enc.env