Skip to content

Commit ccc326d

Browse files
Garrett MosekeGNMoseke
authored andcommitted
ci: Add PR jobs for code formatting and linux testing
1 parent 12552e0 commit ccc326d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull_request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pull Requst
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint:
7+
name: Lint Formatting
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Lint Formatting
12+
run: swift format lint --recursive --strict .
13+
14+
test-ubuntu-latest:
15+
name: Test Swift ${{ matrix.swift }} Ubuntu Latest
16+
strategy:
17+
matrix:
18+
swift: ["6.0", "6.0.1", "6.0.2"]
19+
runs-on: ubuntu-latest
20+
container: swift:${{ matrix.swift }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Run Tests
24+
run: swift test -Xswiftc -warnings-as-errors -Xcc -Werror

0 commit comments

Comments
 (0)