-
Notifications
You must be signed in to change notification settings - Fork 25
78 lines (69 loc) · 2.18 KB
/
integration-tests.yaml
File metadata and controls
78 lines (69 loc) · 2.18 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 8 * * 1" # every monday at 8am UTC
name: integration-tests
jobs:
integration-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version:
- "preview" # Nightly builds of Connect
- "release" # special value that always points to the latest Connect release
- "2025.09.0" # jammy
- "2025.03.0" # jammy
- "2024.09.0" # jammy
- "2024.03.0" # jammy
- "2023.09.0" # jammy
- "2023.03.0" # bionic
- "2022.10.0" # bionic
name: Connect ${{ matrix.version }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Run integration tests
uses: posit-dev/with-connect@main
env:
CONNECTAPI_INTEGRATED: "true"
with:
version: ${{ matrix.version }}
license: ${{ secrets.CONNECT_LICENSE_FILE }}
command: |
Rscript -e 'source("tests/test-integrated.R")'
slack-notification:
needs: integration-tests
if: ${{ failure() && github.event_name == 'schedule' }}
runs-on: ubuntu-latest
steps:
- name: Notify Slack of CI failure
uses: slackapi/slack-github-action@v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
text: ":x: connectapi nightly integration tests failed"
blocks:
- type: section
text:
type: mrkdwn
text: ":x: *connectapi nightly integration tests failed*\n\nView run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"