From 576602bcefa5fbe7445db590afde46990dd38681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Tue, 15 Oct 2024 16:40:48 +0200 Subject: [PATCH] add a github action --- .github/workflows/pull_request.yaml | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/pull_request.yaml diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..bf00832 --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,32 @@ +# This workflow will build a Swift project on macOS and Linux +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift +name: swift-openapi-lambda-build + +on: + push: + branches: [ "main" ] + pull_request: + types: [opened, reopened, synchronize] + +jobs: + build-macos: + env: + # https://github.com/actions/runner-images/tree/main/images/macos + DEVELOPER_DIR: /Applications/Xcode_16.app/Contents/Developer + + runs-on: macos-15-arm64 + # runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v \ No newline at end of file