Files
overlayfs/.github/workflows/test.yaml
Matheus Sampaio Queiroga 9843bae30b
Some checks failed
Golang test / go-test (ubuntu-latest) (push) Successful in 10s
Golang test / go-test (windows-latest) (push) Has been cancelled
Add test cmd to run local tests
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
2025-07-19 14:25:40 -03:00

35 lines
661 B
YAML

name: Golang test
on:
pull_request:
branches: [main]
push:
branches: [main]
tags-ignore:
- '*'
jobs:
go-test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- 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: Mount tmpfs (linux)
if: matrix.os == 'ubuntu-latest'
run: sudo mount -t tmpfs tmpfs /tmp
- name: Test
run: go test -timeout 5m -v ./...