Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI

on:
push:
branches:
- master
- "issue*"
Comment thread
adam-rocska marked this conversation as resolved.
Resolved
pull_request:
branches:
- master
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
linux:
name: Linux / Swift ${{ matrix.swift }}
runs-on: ubuntu-24.04
timeout-minutes: 30

strategy:
fail-fast: false
matrix:
include:
- swift: 4.0.3
Comment thread
adam-rocska marked this conversation as resolved.
Resolved
image: 4.0.3
- swift: 4.1.3
image: 4.1.3
- swift: 4.2.4
image: 4.2.4
- swift: 5.0.3
image: 5.0.3-xenial
- swift: 5.1
image: "5.1"

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Build and test
run: |
set -euo pipefail

docker run --rm \
-v "${PWD}:/workspace" \
-w /workspace \
swift:${{ matrix.image }} \
bash -lc '
set -euo pipefail
swift --version
swift build
swift test
'
Comment thread
adam-rocska marked this conversation as resolved.
Resolved

macos:
name: macOS / default Swift
runs-on: macos-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Build and test
run: |
set -euo pipefail
swift --version
swift build
swift test
72 changes: 0 additions & 72 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<a href="https://kitura.github.io/Kitura-Cache/index.html">
<img src="https://img.shields.io/badge/apidoc-KituraCache-1FBCE4.svg?style=flat" alt="APIDoc">
</a>
<a href="https://travis-ci.org/Kitura/Kitura-Cache">
<img src="https://travis-ci.org/Kitura/Kitura-Cache.svg?branch=master" alt="Build Status - Master">
<a href="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml">
<img src="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI">
</a>
<img src="https://img.shields.io/badge/os-macOS-green.svg?style=flat" alt="macOS">
<img src="https://img.shields.io/badge/os-linux-green.svg?style=flat" alt="Linux">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
<a href="http://www.kitura.io/">
<img src="https://img.shields.io/badge/docs-kitura.io-1FBCE4.svg" alt="Docs">
</a>
<a href="https://travis-ci.org/IBM-Swift/Kitura-Cache">
<img src="https://travis-ci.org/IBM-Swift/Kitura-Cache.svg?branch=master" alt="Build Status - Master">
<a href="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml">
<img src="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI">
</a>
<img src="https://img.shields.io/badge/os-Mac%20OS%20X-green.svg?style=flat" alt="Mac OS X">
<img src="https://img.shields.io/badge/os-linux-green.svg?style=flat" alt="Linux">
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
<a href="http://www.kitura.io/">
<img src="https://img.shields.io/badge/docs-kitura.io-1FBCE4.svg" alt="Docs">
</a>
<a href="https://travis-ci.org/IBM-Swift/Kitura-Cache">
<img src="https://travis-ci.org/IBM-Swift/Kitura-Cache.svg?branch=master" alt="Build Status - Master">
<a href="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml">
<img src="https://github.com/Kitura/Kitura-Cache/actions/workflows/ci.yml/badge.svg?branch=master" alt="CI">
</a>
<img src="https://img.shields.io/badge/os-Mac%20OS%20X-green.svg?style=flat" alt="Mac OS X">
<img src="https://img.shields.io/badge/os-linux-green.svg?style=flat" alt="Linux">
Expand Down