-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (55 loc) · 1.67 KB
/
e2eTest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 }}