-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (70 loc) · 2.17 KB
/
e2e-dummy-gem.yml
File metadata and controls
70 lines (70 loc) · 2.17 KB
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
name: "Run a end to end test on the dummy gem"
on: push
jobs:
compile:
timeout-minutes: 20
name: "Cross compile the gem on different ruby versions"
strategy:
matrix:
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.1.7"
bundler-cache: true
working-directory: "test/fixtures/dummy_gem"
- name: "Run easy compile"
uses: "./.github/actions/easy_compile"
with:
step: "compile"
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: "test/fixtures/dummy_gem"
test:
timeout-minutes: 20
name: "Run the test suite"
needs: compile
strategy:
matrix:
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
rubies: ["3.4.7", "3.1.7"]
type: ["cross", "native"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "${{ matrix.rubies }}"
bundler-cache: true
working-directory: "test/fixtures/dummy_gem"
- name: "Run easy compile"
uses: "./.github/actions/easy_compile"
with:
step: "test_${{ matrix.type }}"
token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
working-directory: "test/fixtures/dummy_gem"
install:
timeout-minutes: 5
name: "Verify the gem can be installed"
needs: test
strategy:
matrix:
os: ["macos-latest", "ubuntu-22.04", "windows-latest"]
runs-on: "${{ matrix.os }}"
steps:
- name: "Checkout code"
uses: "actions/checkout@v5"
- name: "Setup Ruby"
uses: "ruby/setup-ruby@v1"
with:
ruby-version: "3.4.7"
- name: "Run easy compile"
uses: "./.github/actions/easy_compile"
with:
token: ${{ secrets.GITHUB_TOKEN }} # TODO Remove this before publishing the gem
step: "install"