Skip to content

update node16 to node20 (#45) #113

update node16 to node20 (#45)

update node16 to node20 (#45) #113

Workflow file for this run

name: 'e2e-test'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
name: Get language
with:
route: GET /languages/{languageId}
languageId: uk
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }}
- uses: ./
name: List languages with limit
with:
route: GET /languages
query: |
{
"limit": 3,
"offset": 0
}
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }}
- uses: ./
name: List Files
with:
route: GET /projects/{projectId}/files
projectId: 2
query: |
{
"filter": "crowdin_sample"
}
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }}
- uses: ./
name: Get Project Progress
id: project_progress
with:
route: GET /projects/{projectId}/languages/progress
projectId: 2
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }} # Optional
- name: Access the translation progress (first language in the list)
run: |
echo ${{ fromJson(steps.project_progress.outputs.data).data[0].data.translationProgress }}