Skip to content

Bump actions/checkout from 2 to 4 #18

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #18

Workflow file for this run

name: go-nbd
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
toolchain: [oldstable, stable]
runs-on: ${{ matrix.os }}
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.toolchain }}
- name: Build
run: go build ./...
lint:
strategy:
matrix:
toolchain: [oldstable, stable]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.toolchain }}
- uses: golangci/golangci-lint-action@v6
with:
version: v1.60
test:
strategy:
matrix:
toolchain: [oldstable, stable]
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.toolchain }}
- name: Install nbdkit
run: sudo apt-get install nbdkit
- name: Test
run: go test -timeout 1m -v ./...