Skip to content

Commit

Permalink
Backport github workflows (#538)
Browse files Browse the repository at this point in the history
* backport github workflows

* add .nvmrc

* downgrade gloangci-lint-version
  • Loading branch information
cpoile authored Oct 2, 2023
1 parent cb42e71 commit 17df3f2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 216 deletions.
210 changes: 0 additions & 210 deletions .circleci/config.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: cd
on:
workflow_run:
workflows: ["ci"]
types:
- completed
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: read

jobs:
plugin-cd:
uses: mattermost/actions-workflows/.github/workflows/plugin-cd.yml@main
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ci
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:

permissions:
contents: read

jobs:
plugin-ci:
uses: mattermost/actions-workflows/.github/workflows/plugin-ci.yml@main
with:
golangci-lint-version: "v1.51.2"
golang-version: "1.19"
secrets: inherit
9 changes: 3 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
service:
golangci-lint-version: 1.54.2

run:
timeout: 5m
modules-download-mode: readonly
Expand Down Expand Up @@ -44,9 +47,3 @@ linters:
- unused # Checks Go code for unused constants, variables, functions and types
- exportloopref # Checks for pointers to enclosing loop variables
- errcheck # Detects unchecked errors.

issues:
exclude-rules:
- linters:
- unused
text: "getConfiguration"
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.10.0

0 comments on commit 17df3f2

Please sign in to comment.