Skip to content

Update workflows #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
interval: daily
reviewers:
- "nginxinc/kic"
- "ciarams87"
- package-ecosystem: "docker"
directory: "/docker"
schedule:
interval: weekly
interval: daily
reviewers:
- "nginxinc/kic"
5 changes: 4 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ categories:
- title: '🔨 Maintenance'
labels:
- "chore"
- title: '⬆️ Dependencies'
labels:
- "dependencies"
version-resolver:
major:
Expand Down Expand Up @@ -53,11 +55,12 @@ autolabeler:
- '/enhancement\/.+/'
- '/feat\/.+/'
- '/feature\/.+/'
title:
- '/feat/i'
- label: 'dependencies'
files:
- 'go.mod'
- 'go.sum'
- 'vendor*'
branch:
- '/deps\/.+/'
template: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:

build:
name: Build Client
runs-on: ubuntu-18.04
if:
runs-on: ubuntu-20.04
if:
github.event.pull_request.head.repo.full_name == 'nginxinc/nginx-plus-go-client' ||
github.event_name == 'push'
steps:
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:

notify:
name: Notify
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: build
if: always() && github.ref == 'refs/heads/master'
steps:
Expand All @@ -73,8 +73,8 @@ jobs:
echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2)"
- name: Send Notification
uses: 8398a7/action-slack@v3
if:
steps.check.outputs.status == 'failure' ||
if:
steps.check.outputs.status == 'failure' ||
steps.check.outputs.status == 'cancelled'
with:
status: custom
Expand Down Expand Up @@ -110,4 +110,4 @@ jobs:
}
env:
GITHUB_TOKEN: ${{ github.token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
6 changes: 2 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@ defaults:
shell: bash

env:
GOLANGCI_VERSION: 1.29
GOLANGCI_TIMEOUT: 10m0s

jobs:

lint:
name: Lint
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Lint Code
uses: golangci/golangci-lint-action@v2.5.2
uses: golangci/golangci-lint-action@v2
with:
version: 'v${{ env.GOLANGCI_VERSION }}'
args: --timeout ${{ env.GOLANGCI_TIMEOUT }} --issues-exit-code=0 ./client/...