diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5cfcda5 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +# This workflow will build a Swift project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift + +name: Package Test + +on: + push: + branches: [ "develop" ] + pull_request: + branches: [ "develop" ] + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v2.2.0 + with: + swift-version: "6" + + - name: Build💻 + run: swift build -v + + test: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v2.2.0 + with: + swift-version: "6" + + - name: Test🦉 + run: TEST_URL=${{secrets.TEST_URL}} PRODUCTION_URL=${{secrets.PRODUCTION_URL}} PORT_NUM=${{secrets.PORT_NUM}} swift test -v + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88e669d..edeac33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,4 +25,4 @@ jobs: with: tag_name: ${{steps.extract_version_name.outputs.version}} release_name: ${{steps.extract_version_name.outputs.version}} - body: ${{github.event.pull_request.body}} + body_name: ${{github.event.pull_request.body}} diff --git a/Package.swift b/Package.swift index dde0520..3cb557a 100644 --- a/Package.swift +++ b/Package.swift @@ -3,6 +3,7 @@ import PackageDescription + let package = Package( name: "QappleRepository", platforms: [