Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AlexanderNey/SemanticVersioning
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: AlexanderNey/SemanticVersioning
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on May 10, 2020

  1. add githb actions to run swift tests (#25)

    * added github actions to run swift tests
    AlexanderNey authored May 10, 2020
    Copy the full SHA
    6110144 View commit details

Commits on Jun 7, 2024

  1. Create swift.yml

    AlexanderNey authored Jun 7, 2024
    Copy the full SHA
    ecfe1c4 View commit details
Showing with 37 additions and 19 deletions.
  1. +13 −0 .github/workflows/main.yml
  2. +22 −0 .github/workflows/swift.yml
  3. +0 −16 .travis.yml
  4. +2 −3 README.md
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CI
on: [push, pull_request]

jobs:
swiftpm-test:
name: Build and Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Select Xcode version
run: sudo xcode-select -switch /Applications/Xcode_11.4.app
- name: Test
run: swift test -c release 2>&1 | xcpretty
22 changes: 22 additions & 0 deletions .github/workflows/swift.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: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -3,9 +3,8 @@
![Platform](https://img.shields.io/cocoapods/v/SemanticVersioning.svg)
![Platform](https://img.shields.io/cocoapods/p/SemanticVersioning.svg)
![License](https://img.shields.io/cocoapods/l/SemanticVersioning.svg)
![Travis](https://img.shields.io/travis/AlexanderNey/SemanticVersioning.svg)
[![Swift Version](https://img.shields.io/badge/Swift-5.0-F16D39.svg?style=flat)](https://developer.apple.com/swift)
[![codecov](https://codecov.io/gh/AlexanderNey/SemanticVersioning/branch/master/graph/badge.svg)](https://codecov.io/gh/AlexanderNey/SemanticVersioning)
![Build and Test](https://github.com/AlexanderNey/SemanticVersioning/workflows/CI/badge.svg)
[![Swift Version](https://img.shields.io/badge/Swift-5.2-F16D39.svg?style=flat)](https://developer.apple.com/swift)

Semantic Versioning implementation in Swift!
Use the struct `Version` to represent a version according to the [Semantic Versioning Specification 2.0.0](http://semver.org/spec/v2.0.0.html).