From 3e065b45e3ef0a410dcf6d8e595dde66ce8f8a71 Mon Sep 17 00:00:00 2001 From: Marcin Iwanicki Date: Sat, 3 Aug 2024 21:06:38 +0100 Subject: [PATCH 1/2] Set up GitHub Actions --- .github/workflows/main.yml | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..e810059 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,57 @@ +name: Main +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer" + +permissions: + contents: read + +jobs: + lint: + name: Lint + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + - name: Run setup + run: make setup + - name: Run lint + run: make lint + + build: + name: Build + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- + - name: Run setup + run: make setup + - name: Run build + run: make build + + test: + name: Test + runs-on: macos-14 + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- + - name: Run setup + run: make setup + - name: Run tests + run: make test From 9afb34f792e65bff54dc8a8c591af97d3a15f0fa Mon Sep 17 00:00:00 2001 From: Marcin Iwanicki Date: Sat, 3 Aug 2024 21:08:08 +0100 Subject: [PATCH 2/2] Ignore id --- .swiftlint.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.swiftlint.yml b/.swiftlint.yml index 0b76b32..1c42743 100644 --- a/.swiftlint.yml +++ b/.swiftlint.yml @@ -10,6 +10,7 @@ included: identifier_name: excluded: - r + - id type_name: excluded: