Update job names to be more descriptive, ignore go vet errors

This commit is contained in:
ionutboangiu
2023-07-14 11:41:05 -04:00
committed by Dan Christian Bogos
parent ae67776d30
commit a9e0b9b67d
2 changed files with 9 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ on:
jobs:
pre_job:
check-if-duplicate-action:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
outputs:
@@ -24,10 +24,10 @@ jobs:
paths_ignore: '["v0.10/docs/**"]'
paths: '["v0.10/**.go", "v0.10/.github"]'
main_job:
name: Build
build:
needs: check-if-duplicate-action
if: needs.check-if-duplicate-action.outputs.should_skip != 'true'
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
@@ -47,6 +47,7 @@ jobs:
run: gofmt -s -w . && git diff --exit-code
- name: Go Vet
continue-on-error: true # will soon be removed
run: go vet ./...
- name: Go Tidy

View File

@@ -8,7 +8,7 @@ on:
jobs:
pre_job:
check-if-duplicate-action:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
outputs:
@@ -22,9 +22,9 @@ jobs:
paths_ignore: '["v0.10/docs/**"]'
paths: '["v0.10/**.go", "v0.10/*.sh", "v0.10/.github", "v0.10/data/ansible/conf/samples/**", "v0.10/data/tariffplans"]'
main_job:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
integration-tests:
needs: check-if-duplicate-action
if: needs.check-if-duplicate-action.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout code