Skip to content

rust(bug): Fix recursive/nested hdf5 imports #2616

rust(bug): Fix recursive/nested hdf5 imports

rust(bug): Fix recursive/nested hdf5 imports #2616

Workflow file for this run

name: go-ci
on:
release:
types: [created]
pull_request:
push:
branches:
- main
paths:
- 'go/**'
- '.github/workflows/go_ci.yaml'
workflow_call:
permissions:
contents: read
pull-requests: read
jobs:
changes:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
outputs:
go: ${{ steps.filter.outputs.go }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
go:
- 'go/**'
- '.github/workflows/go_ci.yaml'
lint-go:
needs: [changes]
if: |
always() &&
(github.event_name != 'pull_request' || needs.changes.outputs.go == 'true')
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: go fmt
uses: Jerome1337/gofmt-action@v1.0.5
with:
gofmt-path: './go'
gofmt-flags: '-l -d'
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Verify dependencies
run: go mod verify
working-directory: go
- name: Build
run: go build -v ./...
working-directory: go
- name: Run go vet
run: go vet ./...
working-directory: go
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
working-directory: go
- name: Run staticcheck
run: staticcheck ./...
working-directory: go
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: go
version: v1.60
go-ci-status:
if: always()
needs: [changes, lint-go]
runs-on: ubuntu-latest
steps:
- name: Check result
run: |
result="${{ needs.lint-go.result }}"
if [[ "$result" == "success" || "$result" == "skipped" ]]; then
echo "go-ci passed (lint-go: $result)"
else
echo "go-ci failed (lint-go: $result)"
exit 1
fi