-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 1.07 KB
/
pull-request-tester.yaml
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
# name: Pull request test
# on: [pull_request]
# jobs:
# pull-request-test-run:
# name: Test run
# runs-on: ubuntu-latest
# steps:
# # Checkout to pull request branch
# - name: Checkout
# uses: actions/checkout@v2
# # Install NPM dependencies
# - name: Install NPM
# run: npm install .
# # Get all the files added to pull request
# - id: file_changes
# uses: jitterbit/get-changed-files@v1
# with:
# format: 'json'
# # Create event to generate ouput of comma separated test files only
# - id: event
# run: |
# test_files=`python3 -c 'print(",".join([file for file in ${{ steps.file_changes.outputs.all }} if ".test.ts" in file]))'`
# echo "::set-output name=tests::$test_files"
# - name: Run pull request test cases
# if: ${{ steps.event.outputs.tests }}
# run: npx cypress run --spec ${{ steps.event.outputs.tests }} --env username=${{ secrets.USER }},password=${{ secrets.PASS }},hostUrl=${{ secrets.URL }} --config video=false