dependabot: also upgrade GitHub Actions #12
Workflow file for this run
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: 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@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.toolchain }} | |
- name: Build | |
run: go build ./... | |
lint: | |
strategy: | |
matrix: | |
toolchain: [oldstable, stable] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v3 | |
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@v2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.toolchain }} | |
- name: Install nbdkit | |
run: sudo apt-get install nbdkit | |
- name: Test | |
run: go test -timeout 1m -v ./... |