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 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: