diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 0000000..4a6931b --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,26 @@ +name: Snapshot + +on: + push: + branches: + - develop + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test diff --git a/.github/workflows/feature-build-test.yml b/.github/workflows/feature-build-test.yml new file mode 100644 index 0000000..7a1faab --- /dev/null +++ b/.github/workflows/feature-build-test.yml @@ -0,0 +1,26 @@ +name: Feature-Build-Test + +on: + pull_request: + branches: + - feature/* + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7e409e6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: Snapshot + +on: + push: + branches: + - master + +jobs: + build: + name: Swift ${{ matrix.swift }} on ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] + swift: ["5.3"] + runs-on: ${{ matrix.os }} + steps: + - uses: fwal/setup-swift@v1 + with: + swift-version: ${{ matrix.swift }} + - uses: actions/checkout@v2 + - name: Clean + run: xcodebuild clean -scheme Simplog + - name: Build + run: xcodebuild -scheme Simplog + - name: Run tests + run: swift test