Fix lint pipeline to fetch enterprise repo
Signed-off-by: Mustafa Kara <mustafa.kara@mattermost.com>
This commit is contained in:
parent
62ac6a41c3
commit
794307556f
1 changed files with 24 additions and 0 deletions
24
.github/workflows/lint-server.yml
vendored
24
.github/workflows/lint-server.yml
vendored
|
@ -7,6 +7,12 @@ on:
|
||||||
branches: [ main, release-** ]
|
branches: [ main, release-** ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
<<<<<<< Updated upstream
|
||||||
|
=======
|
||||||
|
env:
|
||||||
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
||||||
|
>>>>>>> Stashed changes
|
||||||
jobs:
|
jobs:
|
||||||
golangci:
|
golangci:
|
||||||
name: plugin
|
name: plugin
|
||||||
|
@ -16,6 +22,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: 1.18.1
|
go-version: 1.18.1
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
<<<<<<< Updated upstream
|
||||||
|
=======
|
||||||
|
with:
|
||||||
|
path: "focalboard"
|
||||||
|
- id: "mattermostServer"
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
repository: "mattermost/mattermost-server"
|
||||||
|
path: "mattermost-server"
|
||||||
|
ref: ${{ env.BRANCH_NAME }}
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
if: steps.mattermostServer.outcome == 'failure'
|
||||||
|
with:
|
||||||
|
repository: "mattermost/mattermost-server"
|
||||||
|
path: "mattermost-server"
|
||||||
|
ref : "master"
|
||||||
|
>>>>>>> Stashed changes
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in a new issue