Skip to content

Commit

Permalink
Merge pull request #2 from RobertoMachorro/GitHub-actions-support
Browse files Browse the repository at this point in the history
GitHub Actions support
  • Loading branch information
dankinsoid committed Jun 7, 2023
2 parents 0a2448d + 975fcc3 commit 95559ea
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# 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

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SwiftOpenAPI

[![CI Status](https://img.shields.io/travis/dankinsoid/SwiftOpenAPI.svg?style=flat)](https://travis-ci.org/dankinsoid/SwiftOpenAPI)
[![build](https://github.com/dankinsoid/SwiftOpenAPI/actions/workflows/test.yml/badge.svg)](https://github.com/dankinsoid/SwiftOpenAPI/actions/workflows/test.yml)
[![Version](https://img.shields.io/cocoapods/v/SwiftOpenAPI.svg?style=flat)](https://cocoapods.org/pods/SwiftOpenAPI)
[![License](https://img.shields.io/cocoapods/l/SwiftOpenAPI.svg?style=flat)](https://cocoapods.org/pods/SwiftOpenAPI)
[![Platform](https://img.shields.io/cocoapods/p/SwiftOpenAPI.svg?style=flat)](https://cocoapods.org/pods/SwiftOpenAPI)
Expand Down
2 changes: 1 addition & 1 deletion Tests/SwiftOpenAPITests/SwiftOpenAPITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class SwiftOpenAPITests: XCTestCase {
"tags": .array(of: .string),
"id": .uuid,
"url": .uri,
"enumValue": .ref(components: \.schemas, "SomeEnum"),
"enum_value": .ref(components: \.schemas, "SomeEnum"),
"comments": .dictionary(of: .string),
"int": .integer,
],
Expand Down

0 comments on commit 95559ea

Please sign in to comment.