-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 936 Bytes
/
test.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
name: Tests
env:
DHIS2_PROXY: "${{vars.DHIS2_PROXY}}"
on:
pull_request:
types:
- synchronize
- opened
jobs:
tests:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.18.0
cache: yarn
- name: Install JS dependencies
run: yarn install --frozen-lockfile
- name: Run tests
run: yarn test
env:
BROWSER: none
DHIS2_PROXY: ${{ vars.DHIS2_PROXY }}
CYPRESS_dhis2Username: ${{ secrets.DHIS2_USERNAME }}
CYPRESS_dhis2Password: ${{ secrets.DHIS2_PASSWORD }}
CYPRESS_dhis2BaseUrl: "http://localhost:8080"