Skip to content

Commit

Permalink
Update test suite to run on macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Jan 5, 2024
1 parent 2a2f3dd commit f22b150
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/CI.yml
Expand Up @@ -16,19 +16,33 @@ jobs:
shell: bash
strategy:
matrix:
os: [ubuntu-latest]

os:
- ubuntu-latest
- macos-latest
- windows-latest
vim:
- '9.0.2190'
- '8.2.5172'

steps:
- uses: actions/checkout@v1.0.0
- name: Install dependencies
- uses: actions/checkout@v4
- name: Install coverage dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake vim kcov
- name: Run tests
sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake kcov
- uses: rhysd/action-setup-vim@v1
with:
version: ${{ matrix.vim }}
- name: Run tests without coverage
if: ${{ matrix.os != 'ubuntu-latest' }}
run: |
TEST_DIR=$(pwd)/test VIMS=./vims ./test/test.sh
- name: Run tests with coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
mkdir -p coverage
TEST_DIR=$(pwd)/test VIMS=./vims kcov coverage ./test/test.sh
- name: Upload coverage
if: ${{ matrix.os == 'ubuntu-latest' }}
run: bash <(curl -s https://codecov.io/bash) -s coverage


0 comments on commit f22b150

Please sign in to comment.