Skip to content

[skip-release] Update github-actions #34

[skip-release] Update github-actions

[skip-release] Update github-actions #34

name: build-push
on:
push:
workflow_dispatch:
jobs:
lint-test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Go
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9
with:
version: latest
- name: Install dependencies
run: go get .
- run: go build
- name: unit test
run: go test -race -v ./...
- name: coverage
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
- name: upload coverage to codecov
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
with:
files: ./coverage.out
fail_ci_if_error: false
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run:
needs: [lint-test]
uses: libops/.github/.github/workflows/build-push-ghcr.yaml@main

Check failure on line 43 in .github/workflows/lint-test-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint-test-build.yml

Invalid workflow file

error parsing called workflow ".github/workflows/lint-test-build.yml" -> "libops/.github/.github/workflows/build-push-ghcr.yaml@main" (source branch with sha:f39fff4fbd5096221d705143e88e5942f5d9a604) : (Line: 1, Col: 1): Unexpected value 'build-push.yaml'
permissions:
contents: read
packages: write
secrets: inherit