[MM-48092] WIP: enable importing slack bots as mattermost bots #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- "v*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Install golangci-lint | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2 | |
- name: Verify and tidy go.mod | |
run: | | |
go mod download | |
go mod verify | |
go mod tidy | |
- name: Run golangci-lint | |
run: make check-style | |
- name: Check code style with gofmt | |
run: make gofmt | |
- name: Run tests | |
run: make test | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Install golangci-lint | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2 | |
- name: Verify Go modules | |
run: | | |
go mod download | |
go mod verify | |
go mod tidy | |
- name: Build and package | |
run: make package | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build | |
path: build |