-
-
Notifications
You must be signed in to change notification settings - Fork 8
54 lines (48 loc) · 1.68 KB
/
test-integration.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
name: Run integration tests
on:
pull_request:
paths:
- '.github/workflows/test-integration.yml'
- '.github/workflows/testdata/**'
- 'action.yml'
- 'Dockerfile'
- 'reportsizedeltas/**'
push:
paths:
- '.github/workflows/test-integration.yml'
- '.github/workflows/testdata/**'
- 'action.yml'
- 'Dockerfile'
- 'reportsizedeltas/**'
schedule:
# Run daily at 8 AM UTC to catch breakage caused by changes to external resources.
- cron: "0 8 * * *"
workflow_dispatch:
repository_dispatch:
jobs:
local-source:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run action
# Use arduino/report-size-deltas action from local path
uses: ./
# The action will always fail on PRs submitted from forks due to not having write permissions.
# Some verification can still be achieved by checking the log to see whether it failed in the expected manner:
# WARNING:__main__:Temporarily unable to open URL (HTTP Error 403: Forbidden), retrying
# ...
# TimeoutError: Maximum number of URL load retries exceeded
continue-on-error: ${{ github.event.pull_request.head.repo.full_name != github.repository }}
with:
sketches-reports-source: .github/workflows/testdata/sketches-reports
artifact-source:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run action
# Use arduino/report-size-deltas action from local path
uses: ./