-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-macos-tests' into main
- Loading branch information
Showing
21 changed files
with
450 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,11 +70,10 @@ jobs: | |
path: ~/.cache/mullvad-test/packages | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
- name: Run end-to-end tests | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
git fetch --tags --force | ||
./test/ci-runtests.sh ${{ matrix.os }} | ||
- uses: actions/upload-artifact@v3 | ||
if: '!cancelled()' | ||
|
@@ -140,11 +139,10 @@ jobs: | |
path: ~/.cache/mullvad-test/packages | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
- name: Run end-to-end tests | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
git fetch --tags --force | ||
./test/ci-runtests.sh ${{ matrix.os }} | ||
- uses: actions/upload-artifact@v3 | ||
if: '!cancelled()' | ||
|
@@ -154,36 +152,30 @@ jobs: | |
|
||
build-macos: | ||
if: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} | ||
runs-on: macos-latest | ||
runs-on: [self-hosted, desktop-test, macOS] # app-test-macos-arm | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout submodules | ||
run: git submodule update --init --depth=1 | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.5 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
uses: arduino/setup-protoc@v2 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
node-version: 18 | ||
- name: Install Rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
target: aarch64-apple-darwin | ||
default: true | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18.5 | ||
cache: 'npm' | ||
cache-dependency-path: gui/package-lock.json | ||
- name: Build app | ||
run: ./build.sh --universal | ||
run: ./build.sh | ||
- name: Build test executable | ||
run: ./gui/scripts/build-test-executable.sh aarch64-apple-darwin | ||
# FIXME: This fails for some reason, but the artifact is built | ||
continue-on-error: true | ||
run: ./gui/scripts/build-test-executable.sh | ||
- uses: actions/upload-artifact@v3 | ||
if: '!cancelled()' | ||
with: | ||
|
@@ -210,11 +202,10 @@ jobs: | |
path: ~/Library/Caches/mullvad-test/packages | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
- name: Run end-to-end tests | ||
shell: bash -ieo pipefail {0} | ||
run: | | ||
git fetch --tags --force | ||
./test/ci-runtests.sh ${{ matrix.os }} | ||
- uses: actions/upload-artifact@v3 | ||
if: '!cancelled()' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.