-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (60 loc) · 1.72 KB
/
pull-request.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
56
57
58
59
60
61
62
63
name: pull-request
on:
pull_request:
branches: [ main ]
permissions:
pull-requests: write
contents: write
jobs:
reuse-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Reuse specification test
run: make reuse-test
examples-test:
environment: eu-west-2
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: Local Tests
run: ./local_tests.sh
- name: Example tests
env:
OSC_ACCESS_KEY: ${{ secrets.OSC_ACCESS_KEY }}
OSC_SECRET_KEY: ${{ secrets.OSC_SECRET_KEY }}
OSC_REGION: ${{ secrets.OSC_REGION }}
OSC_USERNAME: ${{ secrets.OSC_USERNAME }}
OSC_PASSWORD: ${{ secrets.OSC_PASSWORD }}
run: make examples-test
regeneration-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- name: SDK re-generation test
run: make regen-test
dependabot-auto-merge:
needs: [reuse-test, examples-test, regeneration-test]
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/[email protected]
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Auto-merge
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}