Overview

In GitHub Actions automation testing, configuring the Workflow file individually for each project is cumbersome.

Use ios-helper-Action to automate tests using the same Workflow file for each project.

Usage

Create the workflow file

mkdir -p .github/workflows
vi .github/workflows/iOS-test.yml
Copy the code
name: iOS testing

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    name: Build and Test default scheme using any available iPhone simulator
    runs-on: macos-latest
    steps:
      - uses: actions/checkout@v2
      - name: swiftlint
        uses: BlueIntent/[email protected]
        with:
          action: 'swiftlint'
      - name: pod lib lint
        uses: BlueIntent/[email protected]
        with:
          action: 'pod-lib-lint'
      - name: install
        uses: BlueIntent/[email protected]
        with:
          action: 'install'
      - name: test
        uses: BlueIntent/[email protected]
        with:
          action: 'test'
Copy the code

Examples

  • Can be directly edited in ci-examples, PR test CI.

Homepage

  • Github.com/BlueIntent/…