-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.24 KB
/
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
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
---
# Github Actions build for rclone
# -*- compile-command: "yamllint -f parsable build.yml" -*-
name: test
on:
schedule:
- cron: '13 13 * * 1'
push:
paths:
- '**.go'
- '!**_test.go'
- 'v1/**'
branches:
- main
pull_request:
paths:
- '**.go'
- '!**_test.go'
- 'v1/**'
jobs:
tests:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Cache browser binaries
id: cache-browser
uses: actions/cache@v3
with:
path: ~/.cache/rod/browser
key: ${{ runner.os }}-rod-browser
- name: Test
run: go test -v ./v1/... -ginkgo.v
env:
DIGIPOSTE_API: ${{ vars.DIGIPOSTE_API }}
DIGIPOSTE_URL: ${{ vars.DIGIPOSTE_URL }}
DIGIPOSTE_USERNAME: ${{ secrets.DIGIPOSTE_USERNAME }}
DIGIPOSTE_PASSWORD: ${{ secrets.DIGIPOSTE_PASSWORD }}
DIGIPOSTE_OTP_SECRET: ${{ secrets.DIGIPOSTE_OTP_SECRET }}
- name: Get debug screenshots
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: '**/*.png'