forked from SwiftyLab/MetaCodable
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 976 Bytes
/
Copy pathswift.yml
File metadata and controls
42 lines (33 loc) · 976 Bytes
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
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift `build` & `test`
permissions:
contents: read
on:
push:
branches: [ "main" ]
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'
jobs:
build-and-test:
runs-on: macos-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Show Swift version
run: swift --version
- name: Cache SwiftPM dependencies
uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-swiftpm-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-swiftpm-
- name: Build
run: swift build --configuration debug
- name: Run tests
run: swift test --configuration debug --parallel --verbose