Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Add GitHub Actions PR pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
JustEatTakeawayiOS committed Jun 30, 2022
1 parent 437f10c commit 11849dc
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Screenshots (if appropriate):

## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
18 changes: 18 additions & 0 deletions .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pull Request Workflow
on: [pull_request]
jobs:
run-tests:
runs-on: macOS-latest
timeout-minutes: 15
steps:
- name: Cancel previous jobs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Git checkout
uses: actions/[email protected]
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Run tests
run: swift test
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import PackageDescription

let package = Package(
name: "TweakAccessorGenerator",
platforms: [
.macOS(.v10_14)
],
products: [
.executable(name: "TweakAccessorGenerator",
targets: ["TweakAccessorGenerator"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.1.2")
],
Expand Down

0 comments on commit 11849dc

Please sign in to comment.