-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.37 KB
/
bats.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
name: Bats
on:
workflow_call:
jobs:
native:
env:
DOCKER_CONNECT: true
# deploy only these content
CONTENT: "fastapi-simple quarto-website-py"
CONNECT_LICENSE: ${{ secrets.CONNECT_LICENSE }}
PYTHON_VERSION: 3.12
QUARTO_VERSION: 1.4.549
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- uses: actions/checkout@v4
with:
repository: rstudio/connect-content
path: "test/content"
sparse-checkout: bundles
sparse-checkout-cone-mode: false
token: ${{ secrets.CONNECT_PAT }}
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: r-lib/actions/setup-r@v2
with:
r-version: 4.3.0
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: ${{ env.QUARTO_VERSION }}
- uses: extractions/setup-just@v2
- uses: actions/download-artifact@v4
with:
name: bin
path: bin
- run: chmod -R +x ./bin
- run: just bats install
- run: just bats test common
- run: just bats build-connect
- run: just bats test init
- run: just bats test deploy