From c3e4ea0fd1e03cffe9dfdc072b53f1a7eb2a4633 Mon Sep 17 00:00:00 2001 From: Nathan Vasse Date: Mon, 10 Feb 2025 16:35:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7(ci)=20add=20sdk=20to=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add basic jobs to handle the new sdk. --- .github/workflows/meet.yml | 43 ++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/.github/workflows/meet.yml b/.github/workflows/meet.yml index 26e6d3dd..86d5ff8b 100644 --- a/.github/workflows/meet.yml +++ b/.github/workflows/meet.yml @@ -175,25 +175,56 @@ jobs: - name: Check format 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: runs-on: ubuntu-latest steps: - - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v1 id: app-token with: app-id: ${{ secrets.APP_ID }} private-key: ${{ secrets.PRIVATE_KEY }} owner: ${{ github.repository_owner }} repositories: "infrastructure,secrets" - - - name: Checkout repository + - name: Checkout repository uses: actions/checkout@v4 with: submodules: recursive token: ${{ steps.app-token.outputs.token }} - - - name: Load sops secrets + - name: Load sops secrets uses: rouja/actions-sops@main with: secret-file: secrets/numerique-gouv/meet/secrets.enc.env