🔧(ci) add sdk to workflow
Add basic jobs to handle the new sdk.
This commit is contained in:
43
.github/workflows/meet.yml
vendored
43
.github/workflows/meet.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user