Skip to content

Commit 5e0e387

Browse files
Kesin11milch
authored andcommitted
Add end to end test (#365)
1 parent 9213003 commit 5e0e387

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/e2e.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: "E2E test"
2+
on: [pull_request]
3+
4+
jobs:
5+
check_install:
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
os: [macos-latest]
10+
xcode: ["10.0", "10.1", "10.2.1", "10.3", "11.0", "11.1", "11.2.1"]
11+
12+
runs-on: ${{ matrix.os }}
13+
env:
14+
# It needs AppleID that has disabled 2FA.
15+
XCODE_INSTALL_USER: ${{ secrets.XCODE_INSTALL_USER }}
16+
XCODE_INSTALL_PASSWORD: ${{ secrets.XCODE_INSTALL_PASSWORD }}
17+
steps:
18+
# Prepare env
19+
- uses: actions/checkout@master
20+
- uses: actions/setup-ruby@master
21+
with:
22+
ruby-version: '2.6'
23+
24+
# Show env
25+
- name: Show macOS version
26+
run: sw_vers
27+
- name: Show ruby version
28+
run: |
29+
ruby --version
30+
bundler --version
31+
32+
# Prepare
33+
- run: bundle install -j4 --clean --path=vendor
34+
- run: bundle exec xcversion update
35+
- name: Show installed versions before install
36+
run: bundle exec xcversion installed
37+
- name: Uninstall installed target Xcode version
38+
run: bundle exec xcversion uninstall ${{ matrix.xcode }} || true
39+
40+
# Exec
41+
- run: bundle exec xcversion install ${{ matrix.xcode }}
42+
43+
# Check
44+
- name: Show installed versions after install
45+
run: bundle exec xcversion installed
46+
- name: Check Xcode installation was successful
47+
run: bundle exec xcversion installed | grep "${{ matrix.xcode }}"

0 commit comments

Comments
 (0)