Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sgmv committed Jun 5, 2024
1 parent 3b4c23a commit 2fb81ec
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 71 deletions.
38 changes: 0 additions & 38 deletions .github/actions/code-quality/action.yaml

This file was deleted.

67 changes: 34 additions & 33 deletions .github/workflows/otc-golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,43 @@ on:
- opened
- edited
- synchronize
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
envPAT:
required: true

jobs:
lint:
name: run golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: run checks
uses: ./.github/actions/code-quality

# lint:
# name: run golangci-lint
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: "1.20"
# - name: golangci-lint
# uses: golangci/golangci-lint-action@v6
# with:
# version: v1.53.3
# vet:
# name: run go vet
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: "1.20"
# - run: make vet
# unit_tests:
# name: run unit tests
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version: "1.20"
# - run: make test
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.53.3
vet:
name: run go vet
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: make vet
unit_tests:
name: run unit tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- run: make test
10 changes: 10 additions & 0 deletions .github/workflows/otc-run-acc-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ on:
pull_request:
types:
- labeled
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
envPAT:
required: true


jobs:
acc_tests:
Expand All @@ -16,6 +25,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: "1.20"
- uses: .github/workflows/reusable-workflow.yml
- run: make acceptance
env:
OS_AUTH_URL: ${{ secrets.AUTH_URL }}
Expand Down

0 comments on commit 2fb81ec

Please sign in to comment.