forked from stencilproject/Stencil
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: ci
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
lint:
runs-on: macos-14
environment: default
steps:
- uses: actions/checkout@v3
- name: SwiftFormat version
run: swiftformat --version
- name: Format lint
run: swiftformat --lint .
- name: Install SwiftLint
run: brew install swiftlint
- name: SwiftLint version
run: swiftlint --version
- name: Lint
run: swiftlint lint --quiet
macos-test:
runs-on: macos-14
environment: default
strategy:
matrix:
xcode: ['15.4']
# Swift: 5.10
steps:
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run Tests
run: TEMP_DIR=${{ runner.temp }} swift test --enable-code-coverage
linux-test:
runs-on: ubuntu-latest
environment: default
steps:
- uses: actions/checkout@v3
- name: Run Tests
run: TEMP_DIR=${{ runner.temp }} swift test