Skip to content

chore(deps): bump axios from 1.7.2 to 1.7.4 (#55) #124

chore(deps): bump axios from 1.7.2 to 1.7.4 (#55)

chore(deps): bump axios from 1.7.2 to 1.7.4 (#55) #124

Workflow file for this run

name: 'e2e-test'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 }}