-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (53 loc) · 1.63 KB
/
UITesting.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
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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
repository_dispatch:
types: [upgrade]
workflow_dispatch:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
name: UITesting
jobs:
UITesting:
runs-on: macOS-latest
strategy:
fail-fast: false
matrix:
browser: [chrome, firefox]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SAUCE_USERNAME: immunespace
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Test
env:
TEST_BROWSER: ${{ matrix.browser }}
ISR_LOGIN: ${{ secrets.ISR_LOGIN }}
ISR_PWD: ${{ secrets.ISR_PWD }}
run: Rscript test.R
- name: Fail
if: ${{ failure() }} || ${{ cancelled() }}
run: |
if [ -e SAUCE ]
then
. ./SAUCE
curl -X PUT -s -d '{"passed": false}' -u $SAUCE_USERNAME:$SAUCE_ACCESS_KEY https://saucelabs.com/rest/v1/$SAUCE_USERNAME/jobs/$SAUCE_JOB
fi
- name: Success
if: ${{ success() }}
run: |
. ./SAUCE
curl -X PUT -s -d '{"passed": true}' -u $SAUCE_USERNAME:$SAUCE_ACCESS_KEY https://saucelabs.com/rest/v1/$SAUCE_USERNAME/jobs/$SAUCE_JOB