ci: add test, fmt, lint workflows #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
paths-ignore: | |
- "README.md" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "README.md" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: test | |
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Switch XCode Version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16.0.0' | |
- run: | | |
make test | |
working-directory: Coder Desktop | |
format: | |
name: format | |
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- run: | | |
make fmt | |
working-directory: Coder Desktop | |
lint: | |
name: lint | |
runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Install Swiftlint | |
run: | | |
brew install [email protected] | |
- run: | | |
make lint | |
working-directory: Coder Desktop |