This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
Bump version to v7.8.14. #694
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: Test | |
on: | |
push: | |
branches: | |
- master | |
- "release-*" | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
check-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: check docs | |
run: | | |
echo "Making sure docs are updated" | |
make docs | |
if [[ -n $(git status --porcelain) ]]; then echo "Please update the docs using make docs"; exit 1; fi | |
mm-govet: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: check lints | |
run: | | |
echo "Installing mattermost-govet" | |
go env GOPATH | |
go install github.com/mattermost/mattermost-govet@master | |
make gofmt govet | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: mmctl | |
- name: Checkout mm-server | |
uses: actions/checkout@v2 | |
with: | |
repository: mattermost/mattermost-server | |
path: mattermost-server | |
fetch-depth: 0 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.18.x | |
- name: Setup mattermost-server | |
working-directory: mattermost-server | |
run: | | |
git checkout $GITHUB_HEAD_REF || git checkout release-7.8 | |
- name: Start containers | |
working-directory: mattermost-server/build | |
env: | |
COMPOSE_PROJECT_NAME: "actions" | |
run: ../../mmctl/scripts/start-docker-compose.sh | |
- name: Wait for docker compose | |
working-directory: mmctl | |
env: | |
COMPOSE_PROJECT_NAME: "actions" | |
run: ./scripts/wait-docker-compose.sh | |
- name: Run Tests | |
working-directory: mattermost-server/build | |
env: | |
COMPOSE_PROJECT_NAME: "actions" | |
run: ../../mmctl/scripts/run-tests-ci.sh |