Skip to content

Commit edd1d67

Browse files
authored
Merge pull request #81 from adam-fowler/linux-tests
Add working Linux tests
2 parents ebd2ea4 + d17598b commit edd1d67

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,36 @@ on:
77
pull_request:
88
branches: [ master ]
99
paths-ignore: [ README.md ]
10+
workflow_dispatch:
11+
1012
jobs:
11-
build:
12-
name: Build and test on ${{ matrix.os }}
13-
runs-on: ${{ matrix.os }}
14-
strategy:
15-
matrix:
16-
os: [macos-10.15, macos-latest, ubuntu-18.04, ubuntu-20.04]
13+
macos:
14+
name: Build and test on macos-latest
15+
runs-on: macOS-latest
1716
steps:
1817
- uses: actions/checkout@v2
19-
- name: Set code coverage path
18+
- name: Set code coverage path
2019
run: echo "codecov_path=$(swift test --show-codecov-path)" >> $GITHUB_ENV
2120
- name: Test and publish code coverage to Code Climate
2221
uses: paulofaria/codeclimate-action@master
23-
if: matrix.os == 'macos-10.15'
2422
env:
2523
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
2624
with:
2725
downloadUrl: https://github.com/paulofaria/test-reporter/releases/download/0.9.0/test-reporter-0.9.0-darwin-amd64
2826
coverageCommand: swift test --enable-test-discovery --enable-code-coverage
2927
coverageLocations: ${{ env.codecov_path }}:lcov-json
28+
29+
linux:
30+
name: Build ${{ matrix.swift }} on ${{ matrix.os }}
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [ubuntu-latest]
35+
swift: ["5.4", "5.5", "5.6"]
36+
steps:
37+
- uses: swift-actions/setup-swift@v1
38+
with:
39+
swift-version: ${{ matrix.swift }}
40+
- uses: actions/checkout@v2
41+
- name: Test
42+
run: swift test

Tests/LinuxMain.swift

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)