mirror of
https://github.com/majd/ipatool
synced 2026-11-26 17:27:52 +08:00
42 lines
940 B
YAML
42 lines
940 B
YAML
name: Integration Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.26.5"
|
|
cache: true
|
|
- run: go build -o ipatool
|
|
env:
|
|
CGO_CFLAGS: -mmacosx-version-min=10.15
|
|
CGO_LDFLAGS: -mmacosx-version-min=10.15
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ipatool
|
|
path: ipatool
|
|
if-no-files-found: error
|
|
test:
|
|
name: Test
|
|
runs-on: macos-latest
|
|
needs: [build]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
command: [auth, download, purchase, search]
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: ipatool
|
|
path: build
|
|
- run: chmod +x ./build/ipatool
|
|
- run: ./build/ipatool ${{ matrix.command }} --help
|