Skip to content

Commit

Permalink
ci: first cut of running tests on macOS
Browse files Browse the repository at this point in the history
Get a simple version of our tests running against "latest" Go and
"latest" Vim. We can update this to be more specific later.

Updates #481
  • Loading branch information
myitcv committed Jan 31, 2020
1 parent 7cf7f31 commit cc717b8
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,32 @@ jobs:
- name: Tidy up
if: failure()
run: ./_scripts/afterFailure.sh

test-macos:
strategy:
matrix:
os: [macos-latest]
go_version: ['1.13.x', '1.14.x']
vim_version: ["stable"]
runs-on: ${{ matrix.os }}
env:
VIM_FLAVOR: vim
steps:
- name: Install Vim
uses: rhysd/action-setup-vim@v1
with:
version: ${{ matrix.vim_version }}
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go_version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Vim version
run: vim --version
- name: Go version
run: go version
- name: Run tests
run: go test ./...


29 changes: 29 additions & 0 deletions internal/cmd/genconfig/genconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,35 @@ jobs:
- name: Tidy up
if: failure()
run: ./_scripts/afterFailure.sh
test-macos:
strategy:
matrix:
os: [macos-latest]
go_version: ['1.13.x', '1.14.x']
vim_version: ["stable"]
runs-on: ${{ matrix.os }}
env:
VIM_FLAVOR: vim
steps:
- name: Install Vim
uses: rhysd/action-setup-vim@v1
with:
version: ${{ matrix.vim_version }}
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go_version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Vim version
run: vim --version
- name: Go version
run: go version
- name: Run tests
run: go test ./...
`

const maxVersions = `# Code generated by genconfig. DO NOT EDIT.
Expand Down

0 comments on commit cc717b8

Please sign in to comment.