From ee557206fa64907a84b237d9fcabad5444bd6f0a Mon Sep 17 00:00:00 2001 From: Egzon Arifi Date: Sat, 2 Nov 2024 15:23:39 +0100 Subject: [PATCH] Setup github actions --- .github/ISSUE_TEMPLATE/bug_report.md | 38 +++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 +++++ .github/workflows/tests.yml | 28 +++++++ .../xcshareddata/xcschemes/NetFlex.xcscheme | 79 +++++++++++++++++++ 4 files changed, 165 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/workflows/tests.yml create mode 100644 .swiftpm/xcode/xcshareddata/xcschemes/NetFlex.xcscheme diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..dd84ea7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bbcbbe7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d4e7de4 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Tests + +on: + push: + pull_request: + types: [opened] + +jobs: + build: + + runs-on: macos-latest-xlarge + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Build project + run: swift build -v + + - name: Run tests + run: swift test -v + + - name: Build the macOS app without signing + working-directory: ./NetFlex + run: | + xcodebuild -project NetFlex.xcodeproj -scheme NetFlex clean build CODE_SIGNING_ALLOWED=NO | xcpretty diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/NetFlex.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/NetFlex.xcscheme new file mode 100644 index 0000000..e384918 --- /dev/null +++ b/.swiftpm/xcode/xcshareddata/xcschemes/NetFlex.xcscheme @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +