Add test workflow on push to master

Add badge in README.
This commit is contained in:
Davide De Rosa 2021-11-28 16:11:18 +01:00
parent b88f490b82
commit 80e4f2ff4e
3 changed files with 24 additions and 0 deletions

22
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: test
on:
push:
branches:
- 'master'
jobs:
run_tests:
runs-on: macos-11
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Run tests
run: |
swift test

1
.ruby-version Normal file
View File

@ -0,0 +1 @@
2.7

View File

@ -1,6 +1,7 @@
![iOS 11+](https://img.shields.io/badge/ios-11+-green.svg) ![iOS 11+](https://img.shields.io/badge/ios-11+-green.svg)
![macOS 10.15+](https://img.shields.io/badge/macos-10.15+-green.svg) ![macOS 10.15+](https://img.shields.io/badge/macos-10.15+-green.svg)
[![License GPLv3](https://img.shields.io/badge/license-GPLv3-lightgray.svg)](LICENSE) [![License GPLv3](https://img.shields.io/badge/license-GPLv3-lightgray.svg)](LICENSE)
[![GitHub Actions](https://github.com/passepartoutvpn/tunnelkit/actions/workflows/test.yml/badge.svg)](https://github.com/passepartoutvpn/tunnelkit/actions/workflows/test.yml)
# TunnelKit # TunnelKit