Skip to content

Commit ac1198b

Browse files
committed
Add GitHub Actions workflow for Swift project
This workflow builds and tests a Swift project on pushes and pull requests to the main branch.
1 parent 8e5101a commit ac1198b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/swift.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup Swift environment
20+
uses: swift-actions/setup-swift@v2
21+
with:
22+
swift-version: "6.2"
23+
- name: Build
24+
run: swift build -v
25+
- name: Run tests
26+
run: swift test -v

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# FifthEdition
2+
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/keybuk/FifthEdition/swift.yml)
3+
24
Swift support for 5eTools schema

0 commit comments

Comments
 (0)