Skip to content

Merge pull request #9 from thallgren/thallgren/read-only #121

Merge pull request #9 from thallgren/thallgren/read-only

Merge pull request #9 from thallgren/thallgren/read-only #121

Workflow file for this run

name: Unit tests
on:
push:
branches:
- master
- testing
pull_request:
types:
- opened
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build
uses: ./.github/actions/build-linux
with:
go-version: '1.20'
- name: Run lint
run: make lint
- name: Update /etc/fuse.conf
run: sudo sh -c 'echo user_allow_other >> /etc/fuse.conf'
- name: Run tests
run: make cover
- name: Convert coverage to lcov
uses: jandelgado/[email protected]
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Run build
uses: ./.github/actions/build-macos
with:
go-version: '1.20'
- name: Run tests
# We are not currently running the tests on macOS because the brew install doesn't
# fix the Kext-Loading. The tests must remain disabled until GitHub provides a macOS
# image with macfuse preinstalled, or some other viable solution pops up.
# See https://github.com/osxfuse/osxfuse/issues/879#issuecomment-1114140186 for more info
if: false
shell: bash
run: CGO_ENABLED=0 go test ./...
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Run build
uses: ./.github/actions/build-windows
with:
go-version: '1.20'
- name: Run tests
shell: bash
run: CGO_ENABLED=0 go test ./...