Skip to content

ci: add test, fmt, lint workflows #2

ci: add test, fmt, lint workflows

ci: add test, fmt, lint workflows #2

Workflow file for this run

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
- run: |
cd "Coder Desktop" && make test
format:
name: format
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || 'ubuntu-latest'}}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- run: |
cd "Coder Desktop" && make fmt
lint:
name: foramt
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-4' || 'ubuntu-latest'}}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install Swiftlint 0.57.1
run: |
git clone [email protected]:realm/SwiftLint.git \
&& cd SwiftLint \
&& git submodule update --init --recursive \
&& git checkout 25f2776977e663305bee71309ea1e34d435065f1 \
&& make install && cd ../
- run: |
cd "Coder Desktop" && make test