Add 100ms timeout before making the first stat-call on unix systems. #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ./... |