Skip to content

Commit

Permalink
Merge pull request #223 from acald-creator/update-ci-workflow
Browse files Browse the repository at this point in the history
[CI] Enhance workflow
  • Loading branch information
leecalcote authored Oct 14, 2022
2 parents 1bfea67 + 563207e commit ca61df4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,36 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- uses: actions/checkout@master
- uses: actions/setup-go@master
with:
go-version: '1.19'
check-latest: 'true'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --enable goimports
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.49

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
tests:
name: Tests
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@master
with:
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@master
with:
go-version: 1.19
- run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/error-codes-updater.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
if: github.repository == 'layer5io/meshkit'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
# token here with write access to meshkit repo
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
ref: 'master'

- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@master
with:
go-version: ${{ secrets.GO_VERSION }}

Expand All @@ -40,7 +40,7 @@ jobs:

# to push changes to meshery docs
- name: Checkout meshery
uses: actions/checkout@v2
uses: actions/checkout@master
with:
repository: 'meshery/meshery'
# token with write access to meshery repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ permissions:

jobs:
comment:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
with:
ref: master # Set your default branch

Expand Down

0 comments on commit ca61df4

Please sign in to comment.