-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1.06 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
name: 'e2e-test'
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
id: contributors
with:
max_contributors: 10
min_words_contributed: 1
placeholder_start: '<!-- TEST-CONTRIBUTORS-START -->'
placeholder_end: '<!-- TEST-CONTRIBUTORS-END -->'
files: ./__tests__/files/contributors.md
crowdin_project_link: 'https://crowdin.com/project/crowdin'
include_languages: true
env:
CROWDIN_PROJECT_ID: 2
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_ORGANIZATION: ${{ secrets.CROWDIN_ORGANIZATION }}
- name: Test the Readme
run: |
cat ./__tests__/files/contributors.md
- name: Test outputs
run: |
echo "contributors_table:"
echo "${{ steps.contributors.outputs.contributors_table }}"
echo "json_report:"
echo "${{ steps.contributors.outputs.json_report }}"