-
Notifications
You must be signed in to change notification settings - Fork 13
71 lines (61 loc) · 2.07 KB
/
testing.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
64
65
66
67
68
69
70
71
---
name: Testing
permissions:
actions: write
contents: read
on:
pull_request:
jobs:
skip-check:
name: Run tests except on release
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@12aca0a884f6137d619d6a8a09fcc3406ced5281
with:
paths_ignore: '["releases/**"]'
command:
name: Command
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
command: ['do-release', 'release']
steps:
- name: Check out the repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0
- name: Test the `make ${{ matrix.command }}` command
env:
# Needed for testing as we're running validations which hit the GH API rate limit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test-${{ matrix.command }}
entire-release:
name: Entire release process
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['100.0.0-m0', '100.0.0-rc0']
steps:
- name: Check out the repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0
# Needed to properly build multi-arch Shipyard images when branching out
- name: Set up QEMU (to support building on non-native architectures)
uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18
- name: Set up buildx
uses: docker/setup-buildx-action@f03ac48505955848960e80bbb68046aa35c7b9e7
- name: Test the entire release
env:
# Needed for testing as we're running validations which hit the GH API rate limit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make test-entire-release VERSION="${{ matrix.version }}"