Some checks failed
Golang test / go-test (push) Failing after 11s
36 lines
707 B
YAML
36 lines
707 B
YAML
name: Golang test
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
tags-ignore:
|
|
- '*'
|
|
|
|
jobs:
|
|
go-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Mount tmpfs (linux)
|
|
run: sudo mount -t tmpfs tmpfs /tmp
|
|
|
|
- uses: actions/checkout@v3
|
|
name: Checkout code
|
|
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: "go.mod"
|
|
cache: true
|
|
|
|
- name: Download go dependencies
|
|
run: go get ./...
|
|
|
|
- name: Install fuse (linux)
|
|
run: sudo apt install -y build-essential libfuse-dev libfuse3-dev
|
|
env:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
- name: Test
|
|
timeout-minutes: 6
|
|
run: go test -timeout 5m -v ./...
|