Skip to content

Commit

Permalink
Add workflow for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
majd committed Feb 23, 2022
1 parent df45f1c commit b257a5c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Integration Tests

on:
pull_request:
branches:
- main

jobs:
build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure Xcode
run: sudo xcode-select -s "/Applications/Xcode_13.2.1.app"
- name: Inject version
run: ./Scripts/version
- name: Build
run: make build
- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: ipatool
path: .build/ipatool
if-no-files-found: error
test:
name: Test
runs-on: ${{ matrix.macos }}
needs: [build]
strategy:
fail-fast: false
matrix:
macos: [macos-10.15, macos-11]
command: [download, search]
steps:
- name: Download binary
uses: actions/download-artifact@v2
with:
name: ipatool
path: ipatool-current
- name: Update permissions
run: chmod +x ./ipatool-current/ipatool
- name: Run tests
run: ./ipatool-current/ipatool ${{ matrix.command }} --help
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Release](https://img.shields.io/github/release/majd/ipatool.svg?label=Release)](https://GitHub.com/majd/ipatool/releases/)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/majd/ipatool/blob/main/LICENSE)
[![Unit Tests](https://github.com/majd/ipatool/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/majd/ipatool/actions/workflows/unit-tests.yml)
[![Integration Tests](https://github.com/majd/ipatool/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/majd/ipatool/actions/workflows/integration-tests.yml)
![Swift](https://img.shields.io/badge/Swift-5.5-green.svg)
![macOS](https://img.shields.io/badge/macOS-10.15%2B-green.svg)

Expand Down

0 comments on commit b257a5c

Please sign in to comment.