-
-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (47 loc) · 1.41 KB
/
Copy pathtest.yml
File metadata and controls
54 lines (47 loc) · 1.41 KB
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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: pnpm/action-setup@v4
- name: Get secrets
run: |
cd config
mkdir secrets
echo "${{ secrets.crowdin_key }}" > secrets/crowdin_key.txt
- name: esbuild
run: |
pnpm i
pnpm run ci-build
# Remove gitignore rule for public folder
sed -i 's/public\///' .gitignore
- name: Start server
run: |
cd public
pnpx http-server --port 8080 &
- name: Install dependencies
run: |
cd unit_tests
# sudo apt-get install xvfb firefox
python3 -m pip install -r requirements.txt
- name: Gecko setup
run: |
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
sudo sh -c 'tar -x geckodriver -zf geckodriver-v0.24.0-linux64.tar.gz -O > /usr/bin/geckodriver'
sudo chmod +x /usr/bin/geckodriver
rm geckodriver-v0.24.0-linux64.tar.gz
export PATH=$PATH:/usr/bin/geckodriver
- name: Test with pytest
run: |
cd unit_tests
python3 -m pytest -s
auto-merge:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}