refactor(service): simplify service lifecycle #150
Workflow file for this run
This file contains hidden or 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: PR Checks | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
branches: [reboot] | |
jobs: | |
# label-pr: | |
# permissions: | |
# contents: read | |
# issues: read | |
# pull-requests: write | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: checkout source | |
# uses: actions/checkout@v4 | |
# | |
# - uses: grafana/[email protected] | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# docs: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: actions/[email protected] | |
# with: | |
# go-version-file: go.mod | |
# | |
# - name: make docs | |
# shell: bash | |
# run: | | |
# make docs && git diff --exit-code | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout source | |
uses: actions/checkout@v4 | |
- name: setup go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
- name: make deps | |
shell: bash | |
run: make deps | |
- name: make fmt | |
shell: bash | |
run: make fmt && git diff --exit-code | |
codecov-upload: | |
uses: ./.github/workflows/codecov-upload.yaml | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
golangci: | |
permissions: | |
contents: read | |
pull-requests: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout source | |
uses: actions/checkout@v4 | |
- name: setup go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: false | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.56 | |
args: --timeout=3m --issues-exit-code=0 ./... | |
only-new-issues: true | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v3 | |
- name: Setup Pre-Commit | |
uses: pre-commit/[email protected] | |
build-images: | |
needs: [fmt, golangci, codecov-upload] | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout source | |
uses: actions/checkout@v4 | |
- name: setup go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go.mod | |
cache: false | |
- name: build images for PR checks | |
uses: ./.github/publish-image | |
with: | |
registry: localhost:5001 |