Skip to content

Commit

Permalink
Merge pull request #3 from chickenzord/feature/lint-workflow
Browse files Browse the repository at this point in the history
feat: Create conventionalcommits job
  • Loading branch information
akhy authored Nov 1, 2023
2 parents 9bd17f9 + bcda3b3 commit 41e9b44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/golangci-lint.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: golangci-lint
name: lint

on:
push:
branches:
Expand All @@ -9,8 +10,9 @@ permissions:
contents: read

jobs:
golangci:
name: lint

golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,3 +24,10 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: v1.53

conventional-commits:
name: conventional-commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webiny/action-conventional-commits@v1.1.0
3 changes: 1 addition & 2 deletions kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"

Expand Down Expand Up @@ -84,7 +83,7 @@ func generateKubeconfig(sourcePath string, contextName string) ([]byte, error) {
}

func listContexts(path string) ([]string, error) {
sourceBytes, err := ioutil.ReadFile(path)
sourceBytes, err := os.ReadFile(path)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 41e9b44

Please sign in to comment.