mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Merge pull request #3418 from mattermost/chore/fix-lint-pipeline
Fix lint pipeline
This commit is contained in:
commit
f06e10ed79
24
.github/workflows/lint-server.yml
vendored
24
.github/workflows/lint-server.yml
vendored
@ -7,6 +7,9 @@ on:
|
|||||||
branches: [ main, release-** ]
|
branches: [ main, release-** ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
env:
|
||||||
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
name: plugin
|
name: plugin
|
||||||
@ -16,7 +19,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: 1.18.1
|
go-version: 1.18.1
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
path: "focalboard"
|
||||||
|
- id: "mattermostServer"
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
repository: "mattermost/mattermost-server"
|
||||||
|
fetch-depth: "20"
|
||||||
|
path: "mattermost-server"
|
||||||
|
ref: ${{ env.BRANCH_NAME }}
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
if: steps.mattermostServer.outcome == 'failure'
|
||||||
|
with:
|
||||||
|
repository: "mattermost/mattermost-server"
|
||||||
|
fetch-depth: "20"
|
||||||
|
path: "mattermost-server"
|
||||||
|
ref : "master"
|
||||||
- name: set up golangci-lint
|
- name: set up golangci-lint
|
||||||
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.46.2
|
||||||
- name: lint
|
- name: lint
|
||||||
run: make server-lint
|
run: |
|
||||||
|
cd focalboard
|
||||||
|
make server-lint
|
||||||
|
Loading…
Reference in New Issue
Block a user